Join GitHub today
GitHub is home to over 28 million developers working together to host and review code, manage projects, and build software together.
Sign upNeed a way to define and enumerate union types. #943
Comments
This comment has been minimized.
Show comment
Hide comment
This comment has been minimized.
process-bot
Feb 13, 2018
Thanks for the issue! Make sure it satisfies this checklist. My human colleagues will appreciate it!
Here is what to expect next, and if anyone wants to comment, keep these things in mind.
process-bot
commented
Feb 13, 2018
|
Thanks for the issue! Make sure it satisfies this checklist. My human colleagues will appreciate it! Here is what to expect next, and if anyone wants to comment, keep these things in mind. |
evancz
added
the
request
label
Mar 7, 2018
This comment has been minimized.
Show comment
Hide comment
This comment has been minimized.
evancz
Mar 7, 2018
Member
This seems like a language feature request, but I do not get it at all. We do not have any short-term plans to make changes to type declarations though, so I will close.
|
This seems like a language feature request, but I do not get it at all. We do not have any short-term plans to make changes to |
congwenma commentedFeb 13, 2018
•
edited
Edited 10 times
-
congwenma
edited Feb 13, 2018 (most recent)
-
congwenma
edited Feb 13, 2018
-
congwenma
edited Feb 13, 2018
-
congwenma
edited Feb 13, 2018
-
congwenma
edited Feb 13, 2018
-
congwenma
edited Feb 13, 2018
-
congwenma
edited Feb 13, 2018
-
congwenma
edited Feb 13, 2018
-
congwenma
edited Feb 13, 2018
-
congwenma
edited Feb 13, 2018
I find myself defining
union types, and when trying to use them I have to explicitly use their names instead of just enumerate through them,It seems that by having
union typeautomatically classifying types(which is wonderful), we lost a use case of dynamically expand its content into possible test cases. Would it be too unstable to have this bit of dynamic-ality in elm?In any case, I'm wondering how the following test case is possible in elm.
And lets pretend that in this fictional universe, people are very proud of a letter they are assigned to, so much so that they would gladly label themselves in this fashion of elm: