protocol for using InputRanges
Walter Bright
newshound2 at digitalmars.com
Thu Mar 27 17:20:25 PDT 2014
On 3/27/2014 2:56 PM, Andrei Alexandrescu wrote:
> On 3/27/14, 2:24 PM, Walter Bright wrote:
>> The range protocol is designed to work with streams.
>
> It's designed to work with containers.
I know we talked about streams when we designed it.
>> It's a giant fail
>> if they do not, or if you want to create a separate, non-range universe
>> to deal with streams.
>
> It's not a giant fail, we just need to adjust the notion.
Are you suggesting that ranges needn't support streams?
Note also that I suggested a way Steven could create an adapter with the
behavior he desired, yet still adhere to protocol. No notion adjustments required.
More information about the Digitalmars-d
mailing list