Kinds of containers

rsw0x via Digitalmars-d digitalmars-d at puremagic.com
Mon Oct 26 13:51:36 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.

Heavily disagree. If ranges are only cool, java 8 streams 
wouldn't be so massively successful and ranges wouldn't be part 
of C++17. D's ranges are one of the main reasons I use D.


More information about the Digitalmars-d mailing list