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 (19:51)
From: Harrison, John R <johnh@i...>
Subject: RE: [Caml-list] String to list to string
| > ...I consider OCaml's mutable strings a far worse design error.
| That's interesting. Why?

Because it destroys persistence, one of the most fundamental advantages
of functional programming. Any function I call with a string argument
choose to modify it, and cause side-effects elsewhere.

Even Java has immutable strings, doesn't it? And I notice this feature
of OCaml is fixed in F#. All for very sound reasons, in my opinion.