Comment by josephg
17 hours ago
> What do you think C would need in order to reach the user experience of those languages?
- A better, cross platform build system.
- Generics
- Ergonomic compile time metaprogramming (zig's comptime, rust's macro system, etc)
- Closures - or at least lambdas.
- The ability to return multiple values - eg tuples
- Sum types.
- A built in way to return an error | value from a function
- Defer / Rust's Drop
C is anaemic.
No comments yet
Contribute on Hacker News ↗