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

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

Description

@peter-lyons-kehl

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.

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions