R-alpha: extraneous ";" gives syntax error

Martin Maechler Martin Maechler <maechler@stat.math.ethz.ch>
Tue, 14 Oct 1997 19:49:48 +0200


Here is what I mean

    > ;1
    ;1
    ^
    Error: syntax error
    > 1;;
    [1] 1
    1;;
      ^
    Error: syntax error
    > 1;;;3
    [1] 1
    1;;;3
      ^
    Error: syntax error

----

In S, these give no syntax errors; 
instead, NULL is returned (in some cases).

It's not a big issue,
but I don't see the advantage of  ``punishing empty statements''.

Martin
=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-
r-devel mailing list -- Read http://www.ci.tuwien.ac.at/~hornik/R/R-FAQ.html
Send "info", "help", or "[un]subscribe"
(in the "body", not the subject !)  To: r-devel-request@stat.math.ethz.ch
=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-