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

Actually, Haskell lets you do it either way. It's the best of both worlds :)

This code:

    do a <- [1,2,3]
       b <- [4,5,6]
       return $ a + b
can also be written as:

     do {
       a <- [1,2,3];
       b <- [4,5,6];
       return $ a + b
     }
or:

     do { a <- [1,2,3]; b <- [4,5,6]; return $ a + b; }
I've even seen it like this:

     do { a <- [1,2,3]
        ; b <- [4,5,6]
        ; return $ a + b }


JavaScript also permits you do it either way. That's what this whole argument is about!


I'm merely responding to the parent's "ruby/python/haskell way of indentation" phrase.




Consider applying for YC's Fall 2026 batch! Applications are open till July 27.

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

Search: