DMD 2.000 alpha release

Walter Bright newshound1 at digitalmars.com
Wed Jun 20 19:55:47 PDT 2007


Charles D Hixson wrote:
> The potential argument in favor of const strings seems, to me, to be 
> speed.  But I don't know whether it applies.

The argument for const strings isn't speed, it's understandability. 
People tend to think of them as value types (like ints), and by making 
strings const (or invariant) it makes them behave like value types.



More information about the Digitalmars-d-announce mailing list