r/ProgrammingLanguages • u/ExplodingStrawHat • Apr 29 '26
Blessed Syntax and Ergonomics
https://www.gingerbill.org/article/2026/04/29/blessed-syntax-and-ergonomics/(not my article, but thought y'all might find it interesting)
33
Upvotes
View all comments
Show parent comment
2
u/ExplodingStrawHat Apr 30 '26 edited Apr 30 '26
I don't necessarily disagree. The Odin language does have other data structures in the standard library (queues, intrusive lists, exponential arrays, etc), yet these don't get any special sugar, which does suck. Even for strings, my game uses exclusively stack-based fixed capacity strings for everything, which means I also don't have access to such sugar (the game is written in Odin).
On the other hand, the sugar is incredibly nice when it is there. I've used quite a few macro based bitset crates in rust over the years (I even wrote my own macro for it once) (don't even get me started on the awful compile times), but none were as nice as the built in Odin support. The Odin compiler recently got support for fixed capacity dynamic arrays (which used to be a part of the standard library beforehand, with no sugar), and the resulting ergonomics are super nice.
In the end, I'm not sure how to feel about the whole thing.