4 ms·
I feel like F# addresses quite a few items on the "dislike" list: * It has // for single-line comments * You can use newlines as a list separator, as in:
by lou1306 4y ago
I feel like F# addresses quite a few items on the "dislike" list:
* It has // for single-line comments
* You can use newlines as a list separator, as in:
let some_list = [
1
2
3
]
* Similarly, multiple let-bindings can be separated by newlines and the "in" is optional in most cases
This comes from some drawbacks: for starters, when I mention "newlines", it's actually significant whitespace, so you may or may not like it (as a heavy Python user, I just don't care).
- devmunchies 4y agoYes, and if you use a code formatter, like Fantomas, it can automatically modify code to be in the more legible format (like Prettier.js), so you don't confuse tuples with list elements. I've been using f# for a couple years, and after the honeymoon phase is over, I've started to really value the benefit of native interop with dotnet libraries. Most enterprise SDKs/libraries (e.g. AWS S3, Stripe, Twilio, Rollbar, etc) have a dotnet SDK, and it just drops into an F# codebase as if it were a 1st party lib (you reference them using object-oriented dot notation instead of functional style, but still it just works). Even when Microsoft puts work into, for example, cryptography security updates or JSON parsing performance, F# benefits from that.