int_19h 2 days ago

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...

1
sundarurfriend 2 days ago

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.