Hacker News new | ask | show | jobs
by catshirt 3899 days ago
definitely! and, be consistent.

an example that is clear and consistent, albeit contrived, would be to wrap arguments when there are more than one:

foo bar

foo (bin, bar)

or if that's too "iffy" for you, you just always wrap with parens!

1 comments

In CoffeeScript I always do (foo bin, bar) when I need the clarity. Found it in a major style guide and I loved it.

E.g. (foo bar) and (hello world)

Only two steps away from embracing the dark side:

  (and (foo bar) (hello world))
Or from the other dark side (Haskell):

    foo bar && hello world
and for more than one argument:

    foo bin bar && hello world