May I introduce `lazy with`?

Tejas notrealemail at gmail.com
Fri Nov 25 02:35:37 UTC 2022


>> Upon more reflection, the implicit `with` should only enclose 
>> the case expression, not the other statements in the switch 
>> body.

How does this not complicate the lookup logic? Most of the time 
there is only 1 statement below each case, so having different 
lookup rules for every second line inside a `switch` expression 
feels... weird 😕


More information about the Digitalmars-d mailing list