Browse thread
Strings
[
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: | -- (:) |
| From: | Jon Harrop <jon@f...> |
| Subject: | Re: [Caml-list] Strings |
On Friday 03 April 2009 21:41:26 Harrison, John R wrote: > | I can agree with you on this argument, but a question still remains: > | > | why should you ever do things like: > | > # s.[0] <- 'a';; > > The point is that it might not be your own code that does it, but a > function written by someone else to which you innocently pass a string > argument. You may think you're writing purely functional code... Why? This data structure is a mutable array of bytes and should be treated as such. -- Dr Jon Harrop, Flying Frog Consultancy Ltd. http://www.ffconsultancy.com/?e