4 ms·
Haskell has 1 unnecessary string type: String. All the other types provide specific functionality that you won't get otherwise. (While String is there only bec
by marcosdumay 10y ago
Haskell has 1 unnecessary string type: String.
All the other types provide specific functionality that you won't get otherwise. (While String is there only because it is easy to use.) If you really don't care about that extra functionality, just keep with strict Text, and be done with that.
Now, if the perfect number of string types is 1, why couldn't you name any language with that number. By the way, Java also has two string types, as does .Net. Python still has 2 types, they just don't coerce into each other anymore, and I've probably seen a dozen C++ string types already.
- deleted 10y ago[deleted]
- riwsky 10y agoI think the ancestor post was referring to python 2's separate str and unicode types, not bytes vs str.
- marcosdumay 10y agoIf he does not think Python's bytes vs. str is confusing, he has no basis to claim Haskell's Text vs. ByteString is confusing either.
- dllthomas 10y ago"ByteString has String in the name" is a basis, however narrow...