First Impressions
Walter Bright
newshound at digitalmars.com
Fri Sep 29 01:24:50 PDT 2006
Derek Parnell wrote:
> On Fri, 29 Sep 2006 10:23:32 +1000, Geoff Carlton wrote:
>> I was a bit underwhelmed by the syntax of char[].
>
> Yes. It isn't very 'nice' for a modern language. Though as you note below a
> simple alias can help a lot.
>
> alias char[] string;
On the other hand, the reasons other languages have strings as classes
is because they just don't support arrays very well. C++'s std::string
combines the worst of core functionality and libraries, and has the
advantages of neither.
An early design goal for D was to upgrade arrays to the point where
string classes weren't necessary.
More information about the Digitalmars-d
mailing list