57 ms·
I evaluated both some time ago. The standout difference for me was Zig requires you initialize all variables and struct fields explicitly, but Odin implicitly i
by fallingsquirrel 2y ago
I evaluated both some time ago. The standout difference for me was Zig requires you initialize all variables and struct fields explicitly, but Odin implicitly initializes variables and forgotten struct fields to their "zero value" (0/null).
- flohofwoe 2y agoZig allows default values in the struct declaration which eases the pain quite a bit (while still making it impossible to forget initializing items).
- fallingsquirrel 2y agoFunny you should say that. I don't find it painful at all, I prefer the explicitness. I just wanted to relay my experience without unnecessarily bundling my opinion, since this is a thread about Odin after all.
- fire_lake 2y agoThis is a tiny difference in the context of all language design decisions!