DIP 1025--Dynamic Arrays Only Shrink, Never Grow--Community Review Round 1

FeepingCreature feepingcreature at gmail.com
Mon Nov 11 11:30:13 UTC 2019


On Monday, 11 November 2019 at 10:27:26 UTC, Mike Parker wrote:
> This is the feedback thread for the first round of Community 
> Review for DIP 1025, "Dynamic Arrays Only Shrink, Never Grow":
>
> https://github.com/dlang/DIPs/blob/1b525ec4c914c06bc286c1a6dc93bf1533ee56e4/DIPs/DIP1025.md
>
> All review-related feedback on and discussion of the DIP should 
> occur in this thread. The review period will end at 11:59 PM ET 
> on November 25, or when I make a post declaring it complete.
>
> At the end of Round 1, if further review is deemed necessary, 
> the DIP will be scheduled for another round of Community 
> Review. Otherwise, it will be queued for the Final Review and 
> Formal Assessment.
>
> Anyone intending to post feedback in this thread is expected to 
> be familiar with the reviewer guidelines:
>
> https://github.com/dlang/DIPs/blob/master/docs/guidelines-reviewers.md
>
> *Please stay on topic!*
>
> Thanks in advance to all who participate.

In my homebrew D-lite language, I used T[~] as the built-in type 
for "an array that carries capacity information, owns memory 
(T[auto~] but nevermind that) and can be appended to." This 
seemed to work well. I definitely think that if we deprecate ~, 
such a type should be built-in, because this is vital 
functionality. appender is just too weird a type (it's a weird 
class-struct hybrid??) to carry this functionality.

Simple things must be easy. We don't have to import std.array for 
T[], we shouldn't have to import it for T[~].



More information about the Digitalmars-d mailing list