3 ms·
> Sadly, switching costs are massive and every programming language is pretty much struck with the string they started with. Haskell is _almost_ flexible enoug
by eru 2y ago
> Sadly, switching costs are massive and every programming language is pretty much struck with the string they started with.
Haskell is _almost_ flexible enough to be able to use a different string than the one it started with.
The language itself actually is flexible enough, but many of the libraries are not.
The main thing making Haskell flexible enough is that a literal like "foo" can be statically determined to be the right string type that you want to use. (And that happens at compile time, it's not a runtime conversion.)