What should be added to C, call
aglew at ccvaxa.UUCP
aglew at ccvaxa.UUCP
Thu Jun 19 01:17:00 AEST 1986
... > Multiple way ifs and cases:
I prefer a syntax something like this:
IF x < y THEN ....
:: x = y THEN ....
:: x > y THEN ....
ENDIF
where :: means "evaluate alternative concurrently", and is distinct from
"else" in that it applies no sequentialization of the tests.
For people into theory, this is really just a guarded statement `a la
Dijkstra.
And, no, I do not propose to put this into C.
Andy "Krazy" Glew. Gould CSD-Urbana. USEnet: ihnp4!uiucdcs!ccvaxa!aglew
1101 E. University, Urbana, IL 61801 ARPAnet: aglew at gswd-vms
More information about the Comp.lang.c
mailing list