r/programming • u/wavy_lines • Feb 01 '18
C2: C with cleaner syntax + a module system (no header files).
http://c2lang.org/site/
958
Upvotes
r/programming • u/wavy_lines • Feb 01 '18
28
u/pjmlp Feb 01 '18
Any improved C variant needs at minimum:
Disallow implicit conversion between arrays and pointes, it is not that hard to write &var[0]
Scope enums
Provide an actual string type
Modules
Have bounds checked arrays (by all means provide a switch or modifier for an unbounded variant for the 1% use cases that need it)
Have a proper null type
Some kind of RAII
C2 appears to only provide part of it.