4 ms·
If I just wait a bit longer, more features from F# will be available in C#. Still not making the jump. So close.
by hkon 10y ago
If I just wait a bit longer, more features from F# will be available in C#. Still not making the jump. So close.
- djedipus 10y ago?? Would you be more likely I make the jump if C# had more of F# features or less likely. I wouldn't hold my breath for anything approaching parity.
- hkon 10y agoNope, but pattern matching will be in vNext.
- platz 10y agoIt's not the same thing. C# "Pattern Matching" is little more than destructuring or switch on steroids. However, much like how the compiler assists you when writing subclasseses so that you've implemented all the required methods, real Pattern Matching (F#) gives you the same guarantees from the compiler that you've handled all the possible cases appropriately. This makes real F# pattern matching much more useful than "switch with destructuring" and helps you grow your programs in a safe way. The C# way has all the same problems as the switch statement which gives no feedback about what cases you've handled.
- deleted 10y ago[deleted]
- mcintyre1994 10y agoThis article is worth a read: https://fsharpforfunandprofit.com/posts/is-your-language-unreasonable/ https://fsharpforfunandprofit.com/posts/is-your-language-unr... It approaches from the other side - I don't care what the language lets me do, but what it doesn't. I think it's quite controversial and the examples are a bit contrived, but I found it really interesting.