3 ms·
After haskell strings, rust strings actually felt reasonable
by jokethrowaway 4y ago
After haskell strings, rust strings actually felt reasonable
- eru 4y agoAlas, Haskell's built-in strings are horrible. Anything serious would use Data.Text or Data.Bytestring (depending on the situation). Unfortunately, most of the language and libraries got written before reasonable strings were available. So you still see lots of things taking linked-list strings.
- lumost 4y agoRust could probably benefit from a collections style reintroduction of String and maybe one or two other common data structures. To simplify the language. It’s not so much a language problem as a rough implementation of a hyper common data structure.