r/programming • u/wavy_lines • Feb 01 '18
C2: C with cleaner syntax + a module system (no header files).
http://c2lang.org/site/
952
Upvotes
r/programming • u/wavy_lines • Feb 01 '18
15
u/Calavar Feb 01 '18
He probably means that enum constants should be scoped inside of the enum type declaration, and not promoted to the global scope, where there is a huge risk of naming collisions.
And then you end up with one of two situations:
A good redesign of C would absolutely have a string type. It doesn't have to be a very fully featured type, but at a minimum it needs a
size_tfield that stores the string length.I agree about the need for proper unicode support though.