←back to thread

Why F#?

(batsov.com)
438 points bozhidar | 2 comments | | HN request time: 0s | source
Show context
oguz-ismail ◴[] No.43546198[source]
>whitespace is significant, like in Python

hard pass

replies(5): >>43546246 #>>43548986 #>>43549106 #>>43550293 #>>43551353 #
1. int_19h ◴[] No.43549106[source]
F# has both "lightweight" (indentation-based) and "verbose" syntax. If you don't like significant whitespace, you can just use the latter.

https://learn.microsoft.com/en-us/dotnet/fsharp/language-ref...

replies(1): >>43549303 #
2. sundarurfriend ◴[] No.43549303[source]
That's an interesting idea and implementation.

I don't think being whitespace-significant is a "hard pass" dealbreaker, but as someone who's not a fan of it, I'd say this only goes a small way towards alleviating that - like most "choose your preferred syntax" designs. Even if you're a lone-wolf developer, you're gonna end up reading a lot of example code and other material that's in the ugly whitespace-sensitive style, given that:

> The verbose syntax is not as commonly used ... The default syntax is the lightweight syntax.

And most people in practice are not lone-wolf devs, and so the existence of this syntax helps them even less.