On Fri, Jul 17, 2009 at 8:13 AM,
philip.hazel...@gmail.com<philip.hazel...@gmail.com> wrote:
>
> On Jul 17, 4:56 am, Richard Newman <holyg...@gmail.com> wrote:
>> If you want unsyntactic input in your file, comment it out with
>> semicolons.
>>
>> Adding true block comments -- #| |# -- is on the to-do list.
> While we're on the subject, are there any plans for a sexp-comment?
> Essentially I'm looking for reader syntax that removes the next
> expression from the parse tree entirely. (comment ...) returns nil,
> which isn't always appropriate. (You can't use it to remove one of the
> (arglist body) forms of a defn, for example.) And using semicolons
> often requires you to move closing parens to the next line. Block
> comments work for this, but I consider them more verbose than
> necessary - maybe that's just me.
>
> (I once tried to write a reader macro for CL which would do this, but
> the best I got was one which would read two forms and ignore the
> first.)

#_ does what you want:

user=> (list 1 2 #_42 3)
(1 2 3)

Rich

--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google
Groups "Clojure" group.
To post to this group, send email to clojure@googlegroups.com
Note that posts from new members are moderated - please be patient with your 
first post.
To unsubscribe from this group, send email to
clojure+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/clojure?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to