Also, if you write your let bindings (according to common convention) so that you have one binding per line, you can use ;; to create a line comment, like:
(let [x 1 ;;y 2 ] x) (Ps. A single semicolon would suffice, but the double version keeps indentation when formatting the buffer in Emacs (and other editors)) On 10 June 2014 06:01, Alex Miller <a...@puredanger.com> wrote: > The only place I've found the comment macro to be useful is at the top-level > of a ns to hold a bunch of test/temp code. > > > On Monday, June 9, 2014 11:22:10 PM UTC-5, Taegyoon Kim wrote: >> >> 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 macro which yields nil). >> >> (from http://clojure.org/reader) >> >> Conclusion: Don't use the 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 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 > --- > 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 clojure+unsubscr...@googlegroups.com. > For more options, visit https://groups.google.com/d/optout. -- Karsten Schmidt http://postspectacular.com | http://toxiclibs.org | http://toxi.co.uk -- 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 --- 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 clojure+unsubscr...@googlegroups.com. For more options, visit https://groups.google.com/d/optout.