Hacker News new | ask | show | jobs
by AnimalMuppet 1073 days ago
What specific idioms do you have in mind?
1 comments

Firstly, they seem to be a hack around old unmaintained library code that accepts a callable that cannot be patched to change the callable's argument list. C++'s solution: give them a new callable "lambda" that extends passing new arguments (silently) in capture list ^^. Moreover, the combination of choices [=] mutable, [&], etc: seem like a documentation disaster. The idea that one has to read the body of lambda function to decipher what is getting passed to the lambda is another layer of lazz...