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 upDocumentation suggests that `==` works on tasks, but it doesn't #502
Comments
halfzebra
referenced this issue
Apr 10, 2016
Merged
Corrections for Task documentation concerning use of == #557
This comment has been minimized.
Show comment
Hide comment
This comment has been minimized.
Show comment
Hide comment
|
Here's my take on fixing those confusing in docs #557 |
This comment has been minimized.
Show comment
Hide comment
This comment has been minimized.
Show comment
Hide comment
jvoigtlaender
Apr 11, 2016
Contributor
Thanks, I like your changes there!
I'll copy my original comment from above to the opening comment over there, so that Evan sees it all in one place when reviewing the PR.
|
Thanks, I like your changes there! I'll copy my original comment from above to the opening comment over there, so that Evan sees it all in one place when reviewing the PR. |
jvoigtlaender
closed this
Apr 11, 2016
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
jvoigtlaender commentedFeb 12, 2016
For example, the documentation of
Task.map2(http://package.elm-lang.org/packages/elm-lang/core/3.0.0/Task#map2) contains this line:However, issuing that exact line in a program will actually evaluate to
False. Very confusing, for example to @paparga here.Maybe the documentation shouldn't be using
==on tasks, and indeed maybe it should explicitly mention that==is wonky on tasks, as the documentation already says elsewhere aboutDictetc.(Note: For
Dictetc., equality could potentially be made unwonky, but for tasks not.)