Re:The Neat Programming Language
by FeepingCreature on Monday December 25, 2023 @09:13PM
(#38768350)
Well, D lambdas and Neat lambdas cash out the same at the backend level. There shouldn't be a performance difference. If you're passing the context as an explicit parameter, that should turn out exactly the same as passing it as an implicit stackframe parameter. The difference is that instead of instantiating the template with the lambda, we're instantiating it with a type that uniquely corresponds to the lambda - it's pretty similar in the end.
It also encourages people not to think about what the structure of their templates, so you can end up with truly massive amounts of duplication.