Ah, reader macro! Thanks!
 
Ignore next form (#_)
The form following #_ is completely skipped by the reader. (This is a more 
complete removal than the *comment* 
<http://clojure.github.io/clojure/clojure.core-api.html#clojure.core/comment> 
macro which yields nil).
 
(from *http://clojure.org/reader* <http://clojure.org/reader>)
 
Conclusion: Don't use the *comment* 
<http://clojure.github.io/clojure/clojure.core-api.html#clojure.core/comment> 
macro. It makes runtime overhead.
 

2014년 6월 10일 화요일 오후 12시 22분 50초 UTC+9, guns 님의 말:

> On Mon  9 Jun 2014 at 07:07:42PM -0700, Taegyoon Kim wrote: 
> > And you can't do this: 
> > user=> (let [x 1 (comment y 2)] x) 
>
> Alex Miller (?) once pointed out that the #_ reader macro can be chained 
> like this: 
>
> (let [x 1 #_#_y 2] x) 
>
> Pretty nifty. 
>
>     guns 
>

-- 
You received this message because you are subscribed to the Google
Groups "Clojure" group.
To post to this group, send email to [email protected]
Note that posts from new members are moderated - please be patient with your 
first post.
To unsubscribe from this group, send email to
[email protected]
For more options, visit this group at
http://groups.google.com/group/clojure?hl=en
--- 
You received this message because you are subscribed to the Google Groups 
"Clojure" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
For more options, visit https://groups.google.com/d/optout.

Reply via email to