Why the hell doesn't foreach decode strings

Peter Alexander peter.alexander.au at gmail.com
Sat Oct 22 02:21:04 PDT 2011


On 21/10/11 11:03 PM, so wrote:
> On Fri, 21 Oct 2011 21:38:39 +0300, Jonathan M Davis
> <jmdavisProg at gmx.com> wrote:
>
>> In another post in this thread, Walter said in reference to post on
>> essentially this idea: "Making such a string type would be terribly
>> inefficient. It would make D completely uncompetitive for processing
>> strings."
>> Now, whether that's true is debatable, but that's his stance on the idea.
>>
>> - Jonathan M Davis
>
> Well he is right, the reason built-in strings everywhere and rarely (so
> rare that i have never seen one yet) someone comes up with a better
> alternative.
> IMO people are spoiled by dynamic languages and fail to see the
> strengths of D strings. Someone coming from C/C++ this is heaven, both
> for performance and flexibility.

Which operations do you believe would be less efficient?


More information about the Digitalmars-d mailing list