3 ms·
You can use a macro for your structs to make them changeable while prototyping. I think it is called @prototype or soemthing. You need a package for it. Google
by socialdemocrat 4y ago
You can use a macro for your structs to make them changeable while prototyping. I think it is called @prototype or soemthing. You need a package for it. Google it.
- leephillips 4y agoThere is RedefStructs: https://juliahub.com/ui/Packages/RedefStructs/nrk8Q/0.1.2 https://juliahub.com/ui/Packages/RedefStructs/nrk8Q/0.1.2 and ProtoStructs: https://github.com/BeastyBlacksmith/ProtoStructs.jl https://github.com/BeastyBlacksmith/ProtoStructs.jl I’ve never tried them, but they’re advertised as doing the job.
- ssivark 4y ago+1 for these packages; I’ve used both at different points. Addendum for those who are new to this, the idea is to use these macros during development, and then get rid of them once the types stabilize (since they tend to have a performance cost).