std.container: fork in the road

ponce via Digitalmars-d digitalmars-d at puremagic.com
Wed Jun 17 03:34:40 PDT 2015


On Wednesday, 17 June 2015 at 06:08:57 UTC, Andrei Alexandrescu 
wrote:
> Regarding compatibility, I see three possibilities:
>
> 1. Just keep the current spec and deal with it. Some containers 
> are and will remain garbage collected because they started as 
> such. Add new containers that are better alongside them.
>
> 2. Do break compatibility of containers, mainly by taking 
> advantage of them being under-documented. In a way we wouldn't 
> break much because not much has been specified. There are, 
> however, parts where we'd need to change specification.
>
> 3. Leave std.container alone and move forward with 
> std.experimental.collection. I am confident the language and 
> its endorsed idioms have reached enough maturity to not make 
> this addition into a regular event.
>
>
> Andrei

One vote for 2.
Never used std.container, and when occasionally it didn't last 
long.
For example, Array does not use the GC but is not @nogc etc.



More information about the Digitalmars-d mailing list