You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Consider the following string x = "a\0b\1c"
If typed on the repl it will display like this:
"a\0bc" : String
It looks like we lost the \1 character, but actually it's being printed directly (and not showing up since it's an unprintable character). This can be verified as follows: String.toList (toString x)
['a','\0','b','','c'] : List Char
This doesn't seem like a great way to handle this. I don't know what the best way to handle this is, but doing something simple like also escaping non-null unprintable characters seems like it'd be an improvement.
Consider the following string
x = "a\0b\1c"
If typed on the repl it will display like this:
It looks like we lost the \1 character, but actually it's being printed directly (and not showing up since it's an unprintable character). This can be verified as follows:
String.toList (toString x)
This doesn't seem like a great way to handle this. I don't know what the best way to handle this is, but doing something simple like also escaping non-null unprintable characters seems like it'd be an improvement.
This is all on 0.18.0.
One suggestion for how to handle this better is at elm-community/elm-test#225 .
The text was updated successfully, but these errors were encountered: