▲ | cjbgkagh 2 days ago | |||||||||||||||||||||||||||||||||||||||||||||||||
Are you saying you prefer Ocaml to F# or C# to F#? Your example was indeed inelegant but it is also poorly designed as you take 4 lines to reproduce a function that is already built in, people can poorly design code in any language. | ||||||||||||||||||||||||||||||||||||||||||||||||||
▲ | shortrounddev2 2 days ago | parent [-] | |||||||||||||||||||||||||||||||||||||||||||||||||
I'm saying that I wish computation blocks looked better in F#. Instead of:
I would prefer
or even something like
So that computation blocks don't feel like you're switching to an entirely different language. Just wrap the ugliness in the same syntactic sugar that C# does. As it is, C# can achieve arrow syntax with async methods more elegantly than F# can:
This, to me, is also part of a larger problem of F# introducing unique keywords for specific language functions instead of reusing keywords, like
and
| ||||||||||||||||||||||||||||||||||||||||||||||||||
|