Replies: 2 comments 2 replies
-
What's the actual request here? If it's a language suggestion it should be raised at fsharp/fslang-suggestions instead of here. |
Beta Was this translation helpful? Give feedback.
2 replies
-
There is another way to create sub-type that's putting all the possible cases in the discriminated union first, then create active pattern of the DU For example :
|
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
In tutorials, we often see a sub type first created then put into DU, which is something advertised to people from C# (doesn't have DU) for its greatness.
One example is :
Beta Was this translation helpful? Give feedback.
All reactions