News for hackers. Stuff that matters.
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.
Re:The Neat Programming Language by mhh__ on Tuesday December 26, 2023 @11:17AM (#38773041)
The original justification was probably that an alias works as a form of specialization.