Hacker News new | past | comments | ask | show | jobs | submit login

Haskell also features a white-space syntax.



It's optional though, and leaves too much room for ambiguity IMO, which I find annoying since the point of significant white-space is maintaining consistency.

These are all equivalent:

    main = do
      something

    main =
      do
        something

    main =
      do something
And obviously, you can also not use `do` notation.




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

Search: