Problems of C, and how Zig addresses them

by avesturaon 6/27/2023, 7:32 PMwith 1 comments

by sylwareon 6/27/2023, 8:23 PM

Problems 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.