Skip to content

Comment on Examples of Lisp formatting through historyparent

Comments

What's wrong with that?

  (let ((a b)
        (c d))
    foo)
I often write my lets and wheres in Haskell as
  let a = b
      c = d
  in foo
and have seen that style in other people's code, too.

inconsequential indent level. Makes it impossible to analyze algorithms at a glance. If you are consequent about your indent levels and get a lot of experience writing code like that, you can glance over a piece of text, notice the main keywords and indent levels, and you immediately have a good idea of what the code might be doing.

You make a good argument for choosing one style and sticking to it, but I don't see how it helps you choose between the different styles here.

AboutSource Built by g1lg1l

Hackerly is an independent reader for Hacker News, built on the public HN API. Not affiliated with Y Combinator.