D Editions

Atila Neves atila.neves at gmail.com
Tue Jun 11 16:08:54 UTC 2024


On Sunday, 9 June 2024 at 18:43:51 UTC, Vladimir Panteleev wrote:
> On Thursday, 30 May 2024 at 18:31:48 UTC, Atila Neves wrote:
>> [...]
>
> I would just like to comment on one aspect of the DIP for now: 
> the "Examples" section is a bit of a sore sight currently. It's 
> difficult to get excited about the idea when the proposed 
> actions it unlocks is "we're changing two defaults and removing 
> three features without providing an immediate replacement".
>
> Regarding the removal of `lazy`, I'm particularly curious about 
> the consequent fate of `assert` and `enforce`, two prominent 
> current users of `lazy. It seems like either way would involve 
> a compromise:
>
> - Will `assert` fully become "compiler magic", unimplementable 
> in user code, and `enforce` replaced with an explicit delegate 
> variant?
> - Will both `assert` and `enforce` require an explicit 
> delegate, thus making unit tests quite a bit more syntactically 
> noisy?
> - Will both `assert` and `enforce` become "compiler magic" (and 
> therefore unimplementable in user code)?

Good questions. Enforce would have to take a delegate, but 
`assert` could be magic. I'm not sure that's a good idea though. 
In any case, that's an idea of what we could do, I'm not sure we 
will.


More information about the dip.ideas mailing list