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 upWeird behaviour for testing equality on Dict #669
Comments
This comment has been minimized.
Show comment
Hide comment
This comment has been minimized.
process-bot
Jul 18, 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
Jul 18, 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.
evancz
Jul 18, 2016
Member
What version of core are you using? It was fixed in 4.0.3, but is still weird before that.
|
What version of |
This comment has been minimized.
Show comment
Hide comment
This comment has been minimized.
bzf
Jul 18, 2016
@evancz Checking my exact-dependencies.json it seems to be "elm-lang/core": "4.0.1". After upgrading to 4.0.3 it seems to work as expected, thanks!
bzf
commented
Jul 18, 2016
|
@evancz Checking my |
bzf
closed this
Jul 18, 2016
This comment has been minimized.
Show comment
Hide comment
This comment has been minimized.
|
Great, glad it's working! |
This comment has been minimized.
Show comment
Hide comment
This comment has been minimized.
jvoigtlaender
Jul 19, 2016
Contributor
To be on the safe side regarding the future, I've proposed addition of the above case to the test suite: https://github.com/elm-lang/core/pull/670. There wasn't such a test yet.
|
To be on the safe side regarding the future, I've proposed addition of the above case to the test suite: https://github.com/elm-lang/core/pull/670. There wasn't such a test yet. |
bzf commentedJul 18, 2016
•
edited
Edited 1 time
-
bzf
edited Jul 18, 2016 (most recent)
There seems to be something weird when testing equality on the
Dicttype.Depending on how you construct the
Dict, the result might vary.Consider these values:
Since we're comparing the
DictI would expect that these toDicts areequal. However when trying this in the
elm-replthat does not seem to be thecase.
If we create another value
baz, built the same way asfoo, they will beconsidered equal.
If I look at the documentation for
Dictoncore/3.0.0there is a warning that says
When reading the docs for
Dictoncore/4.0.3itseems to be missing. Maybe this is by mistake?
I'm running version
0.17.0(got it by runningelm-repl --version).Full session: