English version
Accueil     À propos     Téléchargement     Ressources     Contactez-nous    

Ce site est rarement mis à jour. Pour les informations les plus récentes, rendez-vous sur le nouveau site OCaml à l'adresse ocaml.org.

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.