# How to change struct without julia restart?

**URL:** https://discourse.julialang.org/t/how-to-change-struct-without-julia-restart/133242
**Category:** General Usage
**Created:** [October 17, 2025, 1:46pm UTC](https://discourse.julialang.org/t/how-to-change-struct-without-julia-restart/133242 "2025-10-17T13:46:46Z")
**Posts on this page:** 3
**Page:** 1

<div class="post-metadata">

### Author: ![Alex1](https://sea2.discourse-cdn.com/julialang/user_avatar/discourse.julialang.org/alex1/32/11771_2.png) [@Alex1](https://discourse.julialang.org/u/Alex1)
#### Post date: [October 17, 2025, 1:46pm UTC](https://discourse.julialang.org/t/how-to-change-struct-without-julia-restart/133242/1 "2025-10-17T13:46:46Z")

</div>

I use named tuples, the problem - it’s hard to make code typed properly and it’s slow.

Working with struct requires julia restart, so also not an option.

Is there a way to somehow update struct without restarting julia?

---

<div class="post-metadata">

### Author: ![GunnarFarneback](https://sea2.discourse-cdn.com/julialang/user_avatar/discourse.julialang.org/gunnarfarneback/32/1827_2.png) [@GunnarFarneback](https://discourse.julialang.org/u/GunnarFarneback)
#### Post date: [October 17, 2025, 1:52pm UTC](https://discourse.julialang.org/t/how-to-change-struct-without-julia-restart/133242/2 "2025-10-17T13:52:23Z")

</div>

Yes, use Julia 1.12 and an in progress branch of Revise. See [Revising structs: please test the upcoming Revise](https://discourse.julialang.org/t/revising-structs-please-test-the-upcoming-revise/132226).

---

<div class="post-metadata">

### Author: ![BeastyBlacksmith](https://sea2.discourse-cdn.com/julialang/user_avatar/discourse.julialang.org/beastyblacksmith/32/4741_2.png) [@BeastyBlacksmith](https://discourse.julialang.org/u/BeastyBlacksmith)
#### Post date: [October 17, 2025, 2:54pm UTC](https://discourse.julialang.org/t/how-to-change-struct-without-julia-restart/133242/3 "2025-10-17T14:54:00Z")

</div>

In addition ProtoStructs.jl is still an option. But if you can use the native 1.12 mechanism that should be preferred.
