Hacker Newsnew | past | comments | ask | show | jobs | submitlogin

You actually don't need parentheses--you can use whitespace. You give up the ability to add N arbitrary trees/nodes to one line, but in return you get beautiful, geometric code that's easier to reason about at scale.


I do this too. ctrl-meta-q is really all I need... Sometimes i'll do rainbow parens if i'm feeling festive.


links to example code? (breck too)


This:

  (+ 1 2 (x 3 4))
Can be written as:

  +
   1
   2
   x
    3
    4
Or:

  + 1 2
   x 3 4




Guidelines | FAQ | Lists | API | Security | Legal | Apply to YC | Contact

Search: