Version française
Home     About     Download     Resources     Contact us    

This site is updated infrequently. For up-to-date information, please visit the new OCaml website at

Browse thread
RE: [Caml-list] String to list to string
[ Home ] [ Index: by date | by threads ]
[ Search: ]

[ 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
| dumb things.

That's far too categorical; opinions differ on this subject. I'd be
happy with strings as lists of characters, and I consider OCaml's
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.