return expr and if expr
Doug Gwyn
gwyn at brl-vgr.ARPA
Tue May 15 22:43:45 AEST 1984
If one is serious about changing if & when syntax to remove ( ),
then something else must also be changed to indicate grouping.
The usual solution is something like
if cond then stmt fi
where if, then, & fi are keywords.
Better yet is
if cond then expr fi
so we can get rid of the ternary operator ? : .
Keep going, and you end up with a language that looks a lot like
Algol-68.
More information about the Comp.lang.c
mailing list