std.v2020.algorithm etc[ WAS: Is run.d going to be expand for runtime and the phobos library?]
Andrei Alexandrescu
SeeWebsiteForEmail at erdani.org
Sun Jun 21 00:12:30 UTC 2020
On 6/20/20 3:03 PM, Steven Schveighoffer wrote:
> 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.
>
> How does that work? You'd have to use recursion I guess? ugly. Why do we
> need ranges for something like this?
Think Hakell lists. They can implement tail easily (just return the next
pointer) but can't define popFront.
More information about the Digitalmars-d
mailing list