If only there was a way to have the best of both worlds.

E.g. change the background color for #; to something reminiscent of the
foreground color of regular comments:

(display #|Comment|#
         ; comment
         #;(string-join "comm" "ent")
         "Hello world")

Or perhaps something like the emacs rainbow-parens that Christopher
mentioned could help.


On Mon, Oct 8, 2018 at 4:43 AM Matthias Felleisen <matth...@felleisen.org>

> I have some sympathy for this view but I think that it is a
> misunderstanding.
> I think #; is rather distinct from #| ... |# and ;;  It signals “the
> following is a
> code snippet that is currently not useful or not quite right but you
> should
> read it as code and with the structure of code in mind”.  Here is a use
> that
> illustrates this. When I write untyped code, I strictly follow the design
> recipe
> (because I discovered that “do as I tell you not as I do” applies here
> too).
> For signatures, I write
>  #; [ String String -> (U Number String) ]
>  (define (f s t)
>    (if (= (string-length t) 3) 0 s))
> and such things. I want this signature to be readable as code when someone
> wishes to inject types into my code.
> Similar uses for code snippets abound in my repos too. — Matthias

You received this message because you are subscribed to the Google Groups 
"Racket Users" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to racket-users+unsubscr...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to