domn1995/dunet
View on GitHub ↗ ★ 889 C#
C# discriminated union source generator
5 mentions on Hacker News by 2 people: 0 stories, 5 comments · first 2023-08-24 · latest 2025-10-05
20082026
-
…/timdeschryver.dev/blog/pattern-matching-examples-in-... [1] https://github.com/mcintyre321/OneOf [2] https://github.com/domn1995/dunet
comment by CharlieDigital · 2025-10-05 · in What .NET 10 GC changes mean for developers -
…feature C# is missing. To ease the wait you could try Dunet (discriminated union source generator). https://github.com/domn1995/dunet
comment by zigzag312 · 2024-10-31 · in A comparison of Rust’s borrow checker to the one in C# -
…/chrlschn.dev/blog/2024/07/csharp-discriminated-union... [0] https://github.com/mcintyre321/OneOf [1] https://github.com/domn1995/dunet
comment by CharlieDigital · 2024-10-18 · in Net 9.0 LINQ Performance Improvements -
It's possible to add DUs in C# today with some third party packages. - https://github.com/domn1995/dunet - https://github.com/mcintyre321/OneOf Quite good and ergonomic with the source generators removing a lot of the boilerplate. I have a…
comment by CharlieDigital · 2024-08-07 · in Official proposal for Type Unions in C#