std.v2020.algorithm etc[ WAS: Is run.d going to be expand for runtime and the phobos library?]

Andrei Alexandrescu SeeWebsiteForEmail at erdani.org
Sat Jun 20 14:53:19 UTC 2020


On 6/20/20 6:43 AM, Paul Backus wrote:
> On Saturday, 20 June 2020 at 04:34:42 UTC, H. S. Teoh wrote:
>> On Fri, Jun 19, 2020 at 09:14:30PM -0400, Andrei Alexandrescu via 
>> Digitalmars-d wrote: [...]
>>> One good goal for std.v2020 would be to forego autodecoding throughout.
>> [...]
>>
>> Another could be to fix up the range API -- i.e, reconsider the 
>> ugliness that is .save, now that D has copy ctors.
>>
>>
>> T
> 
> Also, switch from `void popFront()` to `typeof(this) rest`, so that we 
> can have `const` and `immutable` ranges.

Yah, tail() would be necessary too. popFront needs to stay because it 
doesn't copy the range.


More information about the Digitalmars-d mailing list