2 ms·
> Odin instead takes the position that everything is zero-initialized by default... > Exhaustive field setting does remove uncertainty and I was very skeptical
by Tozen 3y ago
> Odin instead takes the position that everything is zero-initialized by default...
> Exhaustive field setting does remove uncertainty and I was very skeptical about just leaving things to zero-initialization, but overall I would say I prefer it. It really does work out most of the time...
Vlang does this as well (also influenced by Wirth/Pascal/Oberon/Go). Overall, this is an advantage and greater convenience for users.