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 uptuple limit: tuples larger than 9 elements are not allowed #792
Comments
This comment has been minimized.
Show comment
Hide comment
This comment has been minimized.
process-bot
Dec 22, 2016
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
Dec 22, 2016
|
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. |
This comment has been minimized.
Show comment
Hide comment
This comment has been minimized.
jvoigtlaender
Dec 22, 2016
Contributor
This is not a bug, and not an issue of core. It's a feature limitation of the compiler. According to the guidelines of this repository (and what process-bot says), this does not belong here as an open GitHub issue,
|
This is not a bug, and not an issue of |
kkruups commentedDec 22, 2016
•
edited
Edited 1 time
-
kkruups
edited Dec 22, 2016 (most recent)
Issue:
Tuple Data type does not allow tuples larger than 9 members to be created. The following error is indicated.
Expected Behavior: tuples would not have limit and would not be constrained just as Lists are not constrained.
Error Indicated:
How to recreate:
1.In elm-repl or ElmO (Elm Online Editor) create the following tuple and run:
(1 , 2 ,3, 4, 5, 6, 7, 8, 9, 10)Additional Info:
I wanted to create a list comprehension which included a tuple (breaks at 10 member):
This fails with indicated error:
tupleIt = \y -> [let baizo x = x * y in (baizo 1 , baizo 2 , baizo 3, baizo 4, baizo 5, baizo 6, baizo 7, baizo 8, baizo 9, baizo 10, baizo 11, baizo 12) ]However with a list is works successfully:
listIt = \y -> [let baizo x = x * y in [baizo 1 , baizo 2 , baizo 3, baizo 4, baizo 5, baizo 6, baizo 7, baizo 8, baizo 9, baizo 10, baizo 11, baizo 12 ]]Environment:
win7 sp1
elm-repl (0.17)
elmO (latest version 0.18 release) (should really add version info to elmO)