Idea: the DU source-generator automatically writes the dispatching of the Match. #779
Labels
area: DiscriminatedUnion
Issues for Funcky.DiscriminateUnion
to discuss
There are open points which need to be discussed
I often rely on polymorphic overloads of the same method to handle DU cases indivdually:
Ideally I would have some syntax like this:
This is obviously not possible, usually I write code like this: I write a public function which is delegating to individual overloads of the same Methodgroup. This is similar to the accept method in the visitor pattern:
Source Generator:
DispatchToMethodGroup could take a parameter name optionally.
The text was updated successfully, but these errors were encountered: