lazy thoughts

Daniel Keep daniel.keep.lists at gmail.com
Mon Jan 12 18:27:27 PST 2009


BCS wrote:
> Reply to Andrei,
> 
>> Daniel Keep wrote:
>>
>>> Maybe map should only take invariant data; that way, it's fairly
>>> obvious to the user that you need to pass a block of data that isn't
>>> going to be changed under the map's feet.
>>>
>> That would reduce map's applicability considerably.
>>
>> Andrei
>>
> 
> maybe require an explicit for lazy if the underlying stuff isn't invariant?

Perhaps have map and mapUnsafe?  Or mapMutable?

Honestly, I can't think of a case where this has been a problem for me
with Python, for what it's worth.

  -- Daniel



More information about the Digitalmars-d mailing list