string types: const(char)[] and cstring
Bill Baxter
dnewsgroup at billbaxter.com
Sat May 26 14:57:33 PDT 2007
Marcin Kuszczak wrote:
> Derek Parnell wrote:
>
>>> Under the new const/invariant/final regime, what are strings going to be
>>> ? Experience with other languages suggest that strings should be
>>> immutable.
>> We seem to have different experience. Most of the code I write deals with
>> changing strings - in other words, manipulating strings is very very
>> common in the sorts of programs I write.
>>
>
> The same here. I don't have much experience with Java and really don't know
> why const strings are so usefull...
>
> Maybe someone could elaborate a little bit more?
Ditto here. When I've used java I found it more annoying that strings
were immutable than anything else.
--bb
More information about the Digitalmars-d-announce
mailing list