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

Jon Degenhardt jond at noreply.com
Mon Nov 11 18:35:16 UTC 2019


On Monday, 11 November 2019 at 18:01:03 UTC, Jon Degenhardt wrote:
> 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
>>
>
> The DIP includes a discussion of std.array.appender:
>
>> A workaround for deprecating:
>> 
>> a ~= b;
>> is to use std.array.appender ...
>
> The DIP should describe whether this includes both 
> std.array.Appender and std.array.RefAppender or just 
> std.array.Appender.

To clarify my previous comment, std.array.appender (lower-case) 
is a convenience function that can create both std.array.Appender 
and std.array.RefAppender. However, it is not obvious that 
std.array.RefAppender would be supported after acceptance of this 
DIP.


More information about the Digitalmars-d mailing list