Re:Why I Don't Like Golang (2016)
by jsjolen on Thursday June 13, 2019 @07:53AM
(#20173853)
If the size of a struct is changed through hot-code reloading then how does the runtime react?
[ Parent
| on HN ]
Re:Why I Don't Like Golang (2016)
by amedvednikov on Thursday June 13, 2019 @01:51PM
(#20177134)
Only function bodies can changed.
I don't think it's possible to modify structs on the fly.
Maybe it is, I need to think about it/do research.
Don't worry, it pretty much isn't possible to do so without semantics which will basically make your program "drift" during run-time away from what a newly compiled program would do.
EDIT: Assuming inlining and call-by-value struct is a possibility.