Hacker News new | ask | show | jobs
by uecker 466 days ago
This will be in C2Y and is already supported by GCC 15: https://godbolt.org/z/szb5bovxq
1 comments

This is one example. Off the top of my head std.array vs "naked" C arrays, string vs const char*, and let's not forget RAII are all features that just make me never want to work with vanilla C ever again.
For me, std.array seem fundamentally inferior compared to C arrays. A good standard string type is indeed missing, but it is also easy to define one. RAII, I can see, but I also some advantages to have explicit resource deallocation visible in the code and it is not really bothering me too much to write this explicitly.