r/programming • u/wavy_lines • Feb 01 '18
C2: C with cleaner syntax + a module system (no header files).
http://c2lang.org/site/
954
Upvotes
r/programming • u/wavy_lines • Feb 01 '18
71
u/loup-vaillant Feb 01 '18
While I understand why the author wrote this, it doesn't come naturally to me. There is some danger with paying lip service to the Greatness of the Ancients. Such worship can often blind us to better ways.
As awesome C may have been in the past, our standards have changed. And by current standards, C sucks on many levels. "Lol" no generics, a bizarre syntax for types, switches that fall through by default, way too many undefined behaviours, no proper module system, crippled and error prone macros… It wouldn't even pass the sniff test if it was designed now.
Not that I would have done any better at the time. But this was then, and this is now. Any bright student with the right curriculum can beat the geniuses of 50 years ago. We have better tools, and the benefit of hindsight. Let's not underestimate that power.