Hacker News new | ask | show | jobs
by ricardobeat 51 days ago
C3 lang gives you defer + a lot of significant ergonomic improvements right now: https://c3-lang.org
4 comments

and what it does take away? most "better C" languages basically looks like C++ (except zig, maybe). Nobody write something real in them, so nobody knows about their pitfalls.
What do you mean by that?

n=1 but I've probably written (sic - a lot of AI) over a million lines of it this year. I like it precisely because it is nothing like C++, it's really just a better C, and the compiler / tooling is almost as good as Go.

gcc also gives you defer nowadays, called cleanup
> fn int foo(){

Eh? What's the point of a `fn` keyword if I can't `grep -r "fn foo"`?

C3 is very good