I've noticed that the comment macro doesn't work from within a binding vector like so:
(let [a "first string"
(comment
b (range 10)
c [\a \b \c]
)
d "another string"]
(str a " and " d))
Besides placing a semicolon in front of each line in the comment block, are there any other ways to comment several bindings within a binding vector that expects an even number of arguments?
You can use the #_
reader macro, which will make the reader completely ignore the next form:
(let [a "first string"
#_(
b (range 10)
c [\a \b \c]
)
d "another string"]
(str a " and " d))
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With