#_ of a multi-line form gets de-indented
peter-lyons-kehl opened this issue · comments
Peter Lyons Kehl commented
Do you sometimes try several code alternatives? To comment out code, I prefix #_
in front of a (parens-enclosed form)
. It works for multi-line, too. Nightcode handles it well for a "while". Then (sooner or later) it unindents any inner indentation. That wouldn't matter much, but by doing so it re-arranges parens. Suddenly the successive lines, which were previously a part of commented out block, become live!
#_(into
(sorted-map-by
#(> (count %) (count %2)))
neither reverse, as those turn a map into a sequence - bad for (vals ...) below
(clojure.set/map-invert
(group-by :rank strucs)))
becomes
#_(into)
(sorted-map-by)
#(> (count %) (count %2))
e turn a map into a sequence - bad for (vals ...) below
(clojure.set/map-invert)
(group-by :rank strucs)
That makes the code a big mess.