In Clojure, commas are treated as whitespace. This serves a simple purpose: it helps the human read the code.
I'd like to specify that another character should be treated as whitespace. Is this possible?
If you're curious, it's ∈/∊. If I could type (for [i ∊ set1, j ∊ set2] (* i j))
, I think that'd be pretty sweet.
Thanks in advance.
No, this is not easily possible. See http://clojure.org/reader , in particular:
The read table is currently not accessible to user programs.
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