Kinds of containers

lobo via Digitalmars-d digitalmars-d at puremagic.com
Mon Oct 26 14:05:54 PDT 2015


On Monday, 26 October 2015 at 19:31:26 UTC, Ulrich Küttler wrote:
> On Wednesday, 21 October 2015 at 18:49:26 UTC, Andrei 
> Alexandrescu wrote:
>> On 10/21/2015 12:25 PM, Jonathan M Davis wrote:
>>> My experience with immutable containers is that their 
>>> performance is
>>> trash precisely because you can't mutate them.
>>
>> That's actually the experience in the Scala community. Over 
>> and again people start with immutable containers all over the 
>> place because they're cool, and end up with mutable containers 
>> because they work. -- Andrei
>
> Ranges and loops. Same story. Ranges are cool, loops get stuff 
> done.

You are conflating ranges and iteration. A range needs something 
to drive it, whether it be an explicit loop or some higher 
abstraction from std.algorithm.

bye,
lobo


More information about the Digitalmars-d mailing list