4 ms·
> If you want to use one of Odin or Zig but don’t know which one, then I recommend spending 1-2 weeks using each and then make up your own mind. That's fair en
by Lyngbakr 2y ago
> If you want to use one of Odin or Zig but don’t know which one, then I recommend spending 1-2 weeks using each and then make up your own mind.
That's fair enough, but has anyone who has done this got any thoughts? Zig seems to have a lot of admirers on HN. Is Odin on par with Zig?
- desdenova 2y agoJust by reading this introduction, Zig seems like a much better designed language so far. Odin inherits a lot of warts from horrible languages like Go, and they seem to have run out of ideas to solve some problems at some point.
- forrestthewoods 2y agoCan you be more specific? What do you like about Zig? What warts does Odin inherit?
- metaltyphoon 2y agoI don’t think zero values is a good idea on Odin. In Zig, anytype will be a mistake.
- cardanome 2y ago> Odin inherits a lot of warts from horrible languages like Go Still waiting on you to list what those "warts" may be. I mean sure golang may be overly conservative in its design but calling it "horrible" is a very wild take. The only evil I know of that golang has perpetuated is making an unused-variable error an compile error that will block compilation instead of an linter error. This makes prototyping much more annoying. Ironically a design mistake that Zig has copied as well. Not sure if Odin does actually
- sarchertech 2y agoI investigated both for a side project. I ended up going with Odin. Primarily because despite them both being non-GC languages, Odin felt higher level to program in. Also Odin has official Direct3D and Metal support.
- deleted 2y ago[deleted]