3 ms·
There is also Odin: https://odin-lang.org/ https://odin-lang.org/ Would be nice to have a list of these and comparisons
by mapcars 1y ago
There is also Odin: https://odin-lang.org/ https://odin-lang.org/
Would be nice to have a list of these and comparisons
- uecker 1y agoThere is also C23 and at some point C2Y. C23 got typeof, constexpr constants, enums with underlying type, embed, auto, _BitInt, checked integers, new struct compatibility rules, bit constants, nullptr, initialization with {}, and various other improvements and cleanups. Modern C code - while still being simple - can look quite different than what people might be used to. C2Y already already got named loops, countof, if with declarations, case range expressions, _Generic with type arguments, and quite a lot of UB removed from the core language. (our aim is also to have a memory safe subset)
- eacnamn 1y agoWhat's the state of things regarding statement expressions? Are there any intentions of adding them? I think I've read Meneide make an offhand comment about that.
- uecker 1y agoThis is being discussed. It has some weird corner cases and limitations though. But since it is widely used and supported, I think there is a good chance that some harmonized version of it will be standardized.
- ksec 1y agoInteresting C2Y. I am wondering how long would it take for GCC and LLVM to implement it once it is out. At this point may be C2Y will get to be the BetterC, given adoption or any other alternative will take far longer than expected.