Discussion Thread: DIP 1033--Implicit Conversion of Expressions to Delegates--Community Review Round 1

aliak something at something.com
Thu Apr 23 21:33:35 UTC 2020


On Thursday, 23 April 2020 at 20:15:19 UTC, aliak wrote:
> On Thursday, 23 April 2020 at 14:49:53 UTC, Meta wrote:
>> On Thursday, 23 April 2020 at 13:20:08 UTC, Guillaume Piolat 
>> wrote:
>>> On Thursday, 23 April 2020 at 11:13:34 UTC, Patrick Schluter 
>>> wrote:
>>>>
>>>> I always thought that lazy should also be marked at the call 
>>>> site as it is a very different semantic on the caller and on 
>>>> the callee. As it is now, it is true that the example above 
>>>> is unfortunate and a real source of unpleasant surprizes.
>>> +1
>>>
>>> Step 1: lazy must be used at the call site
>>
>> That would play havoc with generic code and would 
>> significantly increase the complexity of standard phobos 
>> functions like map, filter, etc.
>
> Can you elaborate? How so?

Nevermind. Got it!

I wonder if phobos generic code should even account for that 🤔




More information about the Digitalmars-d mailing list