Range Redesign: Empty Ranges
Alexandru Ermicioi
alexandru.ermicioi at gmail.com
Wed Mar 6 10:54:10 UTC 2024
On Wednesday, 6 March 2024 at 08:56:02 UTC, Arafel wrote:
> On 05.03.24 17:41, Alexandru Ermicioi wrote:
>> On Tuesday, 5 March 2024 at 14:39:17 UTC, Dom DiSc wrote:
>>> Are there infinite ranges that are indeed not forward ranges?
>>
>> /dev/random could be such a range.
>
> Or a range that returns captured data from a sensor.
Nice example,
Basically, any global resource (sensor, /dev/random, etc.), that
can be representable as a range, and doesn't have a definitive
end, is an infinite input range, since you can't save it at a
specific point and then continue multiple times from that point.
Best regards,
Alexandru.
More information about the Digitalmars-d
mailing list