4 ms·
> Erlang What the fuck. And I thought constant-time indexable strings were a bad idea!
by dom0 9y ago
> Erlang
What the fuck. And I thought constant-time indexable strings were a bad idea!
- masklinn 9y agoFWIW it's way too common in functional languages, Haskell's standard String is a typedef for [Char] (a linked list of Char) hence the proliferation of various other string types.
- patrec 9y agoThey are. You want to use iolists in Erlang. Constant time concatenation (which is useful) rather than constant time indexing into codepoints (which is not; and erlang does not have BTW).