4 ms·
I write Go, tried Odin for about 3 weeks, decided it wasn't for me. I appreciated some things, like the fact that the syntax is close to Go, the easy interop w
by Sphax 2y ago
I write Go, tried Odin for about 3 weeks, decided it wasn't for me.
I appreciated some things, like the fact that the syntax is close to Go, the easy interop with C, the fast compilation, somewhat complete stdlib.
Other things I didn't like much: pointers have changed to '^', I'm sure there's a reasonable but I just don't like it, I'm used to '*'.
Error handling is a PITA as far as I can remember. Meta programming felt clunky.
This is all subjective based on my limited experience, but I felt that Zig worked better for me.
- masfoobar 2y agoI am enjoying Odin myself but I have to admit, I do wish they kept with * rather than ^. I know -- it is a personal preference due to my experience with C. On the other end, I understand the change because it is more inspired by Pascal. Also, the ^ can be used on the left side of the variable (meaning pointer to var) or ^ can be on the right side (dereference pointer to var) It is using the Pascal usage of ^ -