Programming Languages on Crack

Walter Bright newshound2 at digitalmars.com
Thu Jun 17 10:18:57 UTC 2021


On 6/17/2021 2:06 AM, Max Samukha wrote:
> No, the lambda approach will not lead to those. Just like every first D project 
> out there abuses "static if" to hack around the limitations of "version", people 
> will use something like "int a = () @trusted{ ... terrible hacks... }();" 
> everywhere.

I actually agree with you. The lambdas should be replaced with a static nested 
functions, so the arguments come in through the front door.


More information about the Digitalmars-d mailing list