dunet
dunet copied to clipboard
C# discriminated union source generator
As a dunet user, when using switch expression with dunet-generated unions, I don't want to be warned about the switch expression not being exhaustive when it is provably so. For...
As a developer who is considering using Dunet, I want a collection of different real-world samples to help me determine if the library makes sense for my use case. As...
I've been using the library in production code for a while now, and I think there's some additional improvements we can make to the match functionality: ## Async Match Parameters...
Some times we want to make a very basic union without naming its variants. We should be able to do something like: ```cs public partial record struct Number : Union;...
We should support declaring unions as `record structs` for consumers that want value semantics and reduced memory allocations. For example: ```cs using Dunet; [Union] partial record struct Option { partial...
Consider the following union: ```cs [Union] public partial record Option { public partial record Some(T Value); public partial record None; } ``` Currently, to instantiate the `Some` variant, we must...
Hello, This does not work: ```csharp [Union] public partial record Response { public partial record Ok; public partial record Ok; } ``` It complains that the abstract members are not...