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 upSeparate Path and Shape types? #234
Comments
This comment has been minimized.
Show comment
Hide comment
This comment has been minimized.
hoosierEE
May 1, 2015
Yeah, I think you're right about this. The compiler should complain if someone gives traced a circle, or outlined a segment. I experienced this myself, twice. Once because I made the mistake, and twice because I forgot about the first time!
hoosierEE
commented
May 1, 2015
|
Yeah, I think you're right about this. The compiler should complain if someone gives |
This comment has been minimized.
Show comment
Hide comment
This comment has been minimized.
evancz
May 1, 2015
Member
I agree, I implemented this in a long long ago time when it wasn't clear whether type aliases would be distinct in some way. In any case, I think it makes sense to hide all the internal details by making both of them a type
|
I agree, I implemented this in a long long ago time when it wasn't clear whether type aliases would be distinct in some way. In any case, I think it makes sense to hide all the internal details by making both of them a |
This comment has been minimized.
Show comment
Hide comment
This comment has been minimized.
|
Cool, I'll send a PR. |
referenced
this issue
in jvoigtlaender/core
May 1, 2015
jvoigtlaender
referenced this issue
May 1, 2015
Merged
Turned Path and Shape into separate types #235
jvoigtlaender
referenced this issue
Jun 4, 2015
Closed
Make `Set a` and `Dict a ()` be different types? #260
This comment has been minimized.
Show comment
Hide comment
This comment has been minimized.
|
Closed via https://github.com/elm-lang/core/pull/235. |
jvoigtlaender
closed this
Jun 30, 2015
This comment has been minimized.
Show comment
Hide comment
This comment has been minimized.
hoosierEE
commented
Jun 30, 2015
|
Nice, thanks! |
jvoigtlaender commentedMay 1, 2015
The documentation gives the impression that
and
have different types. But they don't. Which can lead to "wrong applications", like for this user.