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 (21:18)
From: Harrison, John R <johnh@i...>
Subject: RE: [Caml-list] String to list to string
| My preference for functional string processing is, as I said,
| They are convenient, and encapsulate the index manipulations in the
| type. I'm almost certain you've seen them, what's your issue?

None whatsoever. I'm perfectly willing to believe that some variant
of character arrays is the best string representation. (Provided
they are immutable!)

But for the relatively trivial string manipulations that I (and
quite possibly many other OCaml users) care about, lists of
characters are very convenient and perfectly adequate. So I don't
feel your hyperbolic dismissals of such a representation as
"dumb" and "ridiculous" are justified. You could say that with
equal force about any use of lists instead of arrays, and I'm
sure there are plenty of programmers who would.