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
Not really a bug but...
[ Home ] [ Index: by date | by threads ]
[ Search: ]

[ Message by date: previous | next ] [ Message in thread: previous | next ] [ Thread: previous | next ]
Date: 2007-06-16 (10:10)
From: Loup Vaillant <loup.vaillant@g...>
Subject: Re: [Caml-list] Not really a bug but...
2007/6/16, Alain Frisch <>:
> Jon Harrop wrote:
> > Any chance of changing the semantics of string literals so they aren't static?
> [...]
> If it were done automatically, there would be a penalty for
> the common case of immutable strings; to avoid it, you'd need to lift
> constant literals out of abstractions, which is not very nice.

By the way, why Ocaml didn't take the Java path, i.e. making truly
immutable strings, And provide mutable string buffers as well? Any
chance of seing someone exploring that path? (Some usefull features
would then be fast consing and catenation, and some easier string