🥷 Clojure Pro Tip 1: the Discard Reader Symbol


Published: 2025-04-05, Last Updated: 2025-05-17

In Clojure, we can use comment (aka Rich Comment Blocks) for tests or experiments in development. However, since a comment evaluates to nil, you may run into surprising results or even errors if you misuse it.

Comment vs. Discard
Comment vs. Discard

In these scenarios, you may tend to use ; to comment them out, but a better choice is to use the discard reader symbol #_.


See also

comments powered by Disqus