this post was submitted on 18 Feb 2024
5 points (100.0% liked)

F Sharp

155 readers
1 users here now

founded 2 years ago
MODERATORS
5
submitted 10 months ago* (last edited 10 months ago) by Anbalsilfer to c/fsharp
you are viewing a single comment's thread
view the rest of the comments
[–] starman 3 points 10 months ago (1 children)

it has almost run out of features to steal

There is still one big feature, waiting to be added to C#. Discriminated unions. Come on Microsoft, it can't be that hard to implement

[–] porgamrer 1 points 10 months ago

That's true. You can kind of do it Scala style with an interfaces and some classes, but with two big drawbacks: no exhaustiveness checking, and no "object" syntax for defining singleton classes. They seem to be heading in that direction though.