[plt-scheme] Student parsing problem

From: Felix Klock's PLT scheme proxy (pltscheme at pnkfx.org)
Date: Wed Jun 3 11:48:12 EDT 2009

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




Posted on the users mailing list.