Skip to content
This repository has been archived by the owner on Apr 24, 2021. It is now read-only.

#_ of a multi-line form gets de-indented #253

Open
peter-lyons-kehl opened this issue Oct 20, 2018 · 0 comments
Open

#_ of a multi-line form gets de-indented #253

peter-lyons-kehl opened this issue Oct 20, 2018 · 0 comments

Comments

@peter-lyons-kehl
Copy link

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.

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant