Browse thread
RE: [Caml-list] String to list to string
- Harrison, John R
[
Home
]
[ Index:
by date
|
by threads
]
[ Message by date: previous | next ] [ Message in thread: previous | next ] [ Thread: previous | next ]
[ Message by date: previous | next ] [ Message in thread: previous | next ] [ Thread: previous | next ]
Date: | 2005-02-10 (18:35) |
From: | Harrison, John R <johnh@i...> |
Subject: | RE: [Caml-list] String to list to string |
| > Haskell treats strings as lists of chars by default. | | Just goes to show you that even really smart people can do some amazingly | dumb things. That's far too categorical; opinions differ on this subject. I'd be quite happy with strings as lists of characters, and I consider OCaml's mutable strings a far worse design error. And yes, I use "implode" and "explode" all the time, because lists of characters are often simple and convenient to deal with in a functional style, and string manipulations are almost never performance-critical in the kind of code I write. John.