• Kogasa@programming.dev
      link
      fedilink
      arrow-up
      2
      ·
      1 year ago

      Discriminated unions have been In The Works™ for quite a while. I believe they were cut from the C# 12 roadmap. But maybe C# 13?

      I think a source-generation based approach similar to OneOf isn’t unlikely.