Comments and whitespace

From Erights

Jump to: navigation, search

XXX Give a sufficiently formal definition here.

Line comments

The character ‘#’ begins a line comment, which may occur anywhere; all characters up to the end of the line are ignored. The characters ‘>’ and ‘?’, which denote Updoc, begin line comments if and only if they are the first non-whitespace character at the beginning of the line.

If the preceding line ended with a line continuation character, then a ‘?’ is a syntax error.

Rationale:

This avoids potential ambiguity over whether ‘?’ is a such-that operator or Updoc. Decision.

? foo =~ bar \
>  ? baz
# syntax error: ...
This page is a stub; it should be expanded with more information. If doing so, check the original E web site and the mailing list archives for content which could be moved into this page.
Personal tools
more tools