Why the hell doesn't foreach decode strings

so so at so.so
Fri Oct 21 15:03:53 PDT 2011


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.


More information about the Digitalmars-d mailing list