Version française
Home     About     Download     Resources     Contact us    
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: -- (:)
From: Loup Vaillant <loup.vaillant@g...>
Subject: Re: [Caml-list] Not really a bug but...
2007/6/16, Alain Frisch <Alain.Frisch@inria.fr>:
> 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
sharing).

Loup