From Fedora Project Wiki

Revision as of 14:35, 30 October 2015 by Pjones (talk | contribs) (Created page with "= Things that could be done to make C better without really changing very much = - case 1..100: - conditionals statements as expressions: if (control_flow(expr) stmt0;) stm...")
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)

Things that could be done to make C better without really changing very much

- case 1..100: - conditionals statements as expressions:

 if (control_flow(expr) stmt0;) stmt1;
 where the while(expr) stmt evaluates to 0 if stmt0 is never executed, or stmt0 the last time it is
 and:
 if (control_flow(expr) stmt0; else stmt1;) stmt2;
 which is essentially the same except stmt2 always happens after stmt1.

- #def ... #endef , so we don't have to use \ on macros

 - this gets us multi-line macros that still basically look like C and don't have to have \ all over the place, and get syntax highlit right
 - and error messages you can read from the compiler, by default.