[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: why a new lexical form?

This page is part of the web mail archives of SRFI 30 from before July 7th, 2015. The new archives for SRFI 30 contain all messages, not just those from before July 7th, 2015.



> From: bear <bear@xxxxxxxxx>
> 
> Why do we actually need a new lexical form for comments?
> 
> Can't we just use a syntax definition and say
> 
> (Comment ...)
> 
> "expands" to nothing?

I sometimes use ' as a way to comment out multiline commands and
definitions.

However, it is more useful to be able to comment at the token level:

  (define stuff
    '(foo
      bar
  #| FIXME: These two cause crashes for some reason  -APP
      baz
      quux
  |#
      zork))

-al