Ranges and/versus iterators
Andrei Alexandrescu
SeeWebsiteForEmail at erdani.org
Tue Mar 23 14:09:14 PDT 2010
On 03/23/2010 04:06 PM, grauzone wrote:
> Steven Schveighoffer wrote:
>> A while back, you identified one of the best interfaces for input ranges:
>>
>> E* getNext();
>>
>> Which allows for null returns when no data is left. The drawback is
>> that E must be either referenced or allocated on the heap (providing
>> storage to the function is an option). But the killer issue was that
>> safeD would not allow it. However, in recent times, you have hinted
>
>
> Nullable!(E) getNext(); ?
And if returning a reference...?
Andrei
More information about the Digitalmars-d
mailing list