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 uptoCode and fromCode should be inverse operations #174
Comments
This comment has been minimized.
Show comment
Hide comment
This comment has been minimized.
deadfoxygrandpa
Feb 21, 2015
Contributor
I'd really like a toCode that doesn't convert to uppercase, at least as an option. I'm right now trying to write a text rendering thing in elm-webgl and all my text comes out uppercase all the time because of this.
|
I'd really like a |
This comment has been minimized.
Show comment
Hide comment
This comment has been minimized.
evancz
Feb 21, 2015
Member
I believe the upper-casing is removed on the master branch, not sure if that resolves all of this.
|
I believe the upper-casing is removed on the master branch, not sure if that resolves all of this. |
This comment has been minimized.
Show comment
Hide comment
This comment has been minimized.
TheSeamau5
Feb 22, 2015
Contributor
https://github.com/elm-lang/core/pull/134 solved this problem. toCode now doesn't convert to uppercase which is exactly what we wanted and how it should've been and now all is good.
|
https://github.com/elm-lang/core/pull/134 solved this problem. |
TheSeamau5
closed this
Feb 22, 2015
This comment has been minimized.
Show comment
Hide comment
This comment has been minimized.
|
Don't you mean #50 solves this problem? |
This comment has been minimized.
Show comment
Hide comment
This comment has been minimized.
TheSeamau5
Feb 22, 2015
Contributor
Probably. I just saw that the problem was solved in the merged PR and was super happy so I closed it. I didn't look too much into the history behind the fix, sorry.
|
Probably. I just saw that the problem was solved in the merged PR and was super happy so I closed it. I didn't look too much into the history behind the fix, sorry. |
This comment has been minimized.
Show comment
Hide comment
This comment has been minimized.
kasbah
Feb 22, 2015
Contributor
No worries, but I think it would be clearer to report bugs against the master branch if you are able.
|
No worries, but I think it would be clearer to report bugs against the master branch if you are able. |
TheSeamau5 commentedFeb 16, 2015
So, I saw that
toCodeandfromCodeare not inverse operations. According to the docs,toCodeuppercases things for use with the keyboard. I think that this makes no sense. If you really want a function to work to the keyboard, there should be one calledtoKeyboardCodebecause from the names, it would seem thattoCodeandfromCodeare inverses.I found this out as I was testing the core library with elm-check and with this property:
I got the following errors:
Notice how it fails with the letter
z(the first input in the sequence).