Range syntax

Michael Meissner uunet!osf.org!meissner
Thu Jan 2 05:50:19 PST 1992


| Uwe Hollerbach (uhaacm.princeton.edu) suggested to me the use of
| -- as a range delimiter.  For example, `int {a -- b}' or
| `case a -- b:'.
| 
| This syntax looks natural for a range and ought to be unambiguous
| in all contexts.

I would be real careful about using --, since I can imagine that it
would cause most parsers headaches, since a lot of compilers typically
don't have completely separate rules for expressions and constant
expressions.



More information about the Numeric-interest mailing list