logoalt Hacker News

vkazanov10/02/20241 replyview on HN

Well, Rust makes one BIG bet, and then keeps adding everything else, just like C++ keeps doing.

The thing is: people don't want everything.

For the kind of things that are expected to be build in C and C-inspired languages it just doesn't make sense to have Lisp-like macros, or 2 flavours of macros like in Rust, or the accidental kind of metaprogramming C++ is famous for.

Comptime does the job just fine here, replacing the unpredictable macro mess.


Replies

pjmlp10/02/2024

Waiting for comptime debuggers, alongside memory quarantine analysers....as they will surely come up if Zig ever gets wide adoption.

show 1 reply