4 ms·
> I believe this is frequently considered a design mistake in Haskell. More accurately, there's an impedance mismatch with how many people use strings. Text is
by Syzygies 6y ago
> I believe this is frequently considered a design mistake in Haskell.
More accurately, there's an impedance mismatch with how many people use strings. Text is a better fit for them.
The Haskell implementation is not purely functional. It is however well tested, and wicked fast. While it is immensely appealing to view Haskell as a "there is a God!" abstraction, one does well to often consider and exploit what is happening through the looking glass.
One sees this for example using `type ShowS = String -> String` to concatenate many small strings to later output all at once. A project I've been meaning to complete is to translate a fast parser of mine to Text, to see if I can get it to run as fast. I'm sure the response to that blog post will be amusing.