3 ms·
Haskell implementing strings as lists of characters is a problem. Basically, you can't use them for anything performant. A proper string library should be a F
by cryptonector 6y ago
Haskell implementing strings as lists of characters is a problem. Basically, you can't use them for anything performant.
A proper string library should be a Functor, naturally, but it should also be much more like a rope and much less like a list under the covers and in its API.
- nilkn 6y agoI agree, but that's why you use Text and ByteString. Annoying? Yes. Hard to understand? Not at all. Rust strings to me are both annoying and hard to understand and explain.