logoalt Hacker News

elflyyesterday at 11:19 PM2 repliesview on HN

You are not telling the whole story.

You can mix indentation and braces to delimit blocks.

It's insane.


Replies

macintuxyesterday at 11:42 PM

As a casual observer who has written perhaps a dozen lines of Scala in his life, I feel like Scala approaches any “pick one” decision with “why not both?”.

Functional or OO? Yes.

Blikkentrekkeryesterday at 11:46 PM

I like how Haskell does it. One can do both but not mix, as in either indent or use `{ ... }`.