[plt-scheme] Student parsing problem
Eli (cc'ing plt-scheme)-
On Jun 3, 2009, at 11:40 AM, Eli Barzilay wrote:
> ...
> and it works with multiple expressions too:
>
> (define (foo x)
> ;#;#;
> (printf "foo\n")
> (printf " x = ~s\n" x)
> ...)
I find the amount of time my brain needs to lex and parse this to be
an argument *for* the rule I suggested (which disallows the #;#;
pattern).
Do you really think the #;#; pattern is that useful, compared to the
alternative below (which is compatible with the rule I suggested):
(define (foo x)
;#;
(begin
(printf "foo\n")
(printf " x = ~s\n" x))
...)
-Felix