2 ms·
Problems of C, and how Zig addresses them
- sylware 3y agoProblems of C syntax: - TLS in the syntax. - Integer promotion. - Implicit casts, missing explicit dynamic/static casts. Implicit casts for number literals though (like rust), and for void* pointers too, very probably. - Missing explicit compile-time constants. - Too many loop keywords, one loop{} is enough. - Enumerations, switch, and stuff like _Generic/typeof, and more have to go. - should have been only sized primitive types (u8/s8...u64/s64....f64, etc). - and all the others I am forgetting right now.