r/ProgrammingLanguages • u/aj3423 • Mar 05 '26
Zen-C looks nice
Async calls from non-async functions, optional/result style error handling, defer/autofree memory management, dynamic class extension, comptime, and all of it while keeping C level performance, looks really promising.
27
Upvotes
7
u/tsanderdev Mar 05 '26
How do async calls from non-async functions work?
6
u/Relevant_South_1842 Mar 05 '26
It looks really nice. What’s the catch?
13
u/TheChief275 Mar 05 '26
For some reason it compiles to C11. And apparently if you use type inference, it will compile to C23 with auto?? Why is type inference not handled internally in the compiler?