how would D be different if string were const(char)[]?

Meta jared771 at gmail.com
Thu Oct 17 11:28:30 PDT 2013


On Thursday, 17 October 2013 at 13:08:18 UTC, Daniel Davidson 
wrote:
> If it would be no different then why prefer immutable(char)[] 
> for string?

Strings are immutable in quite a few other languages. Ex: Java, 
Python. I found this old article written by Walter:

http://www.drdobbs.com/architecture-and-design/invariant-strings/228700475


More information about the Digitalmars-d-learn mailing list