• starman@programming.dev
    link
    fedilink
    English
    arrow-up
    3
    ·
    6 months ago

    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@programming.dev
      link
      fedilink
      arrow-up
      1
      ·
      6 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.