Use explicit captures in lambda expressions.
Rationale:
- Explicit is better than implicit.
- Help avoid the lambda dangling reference problem (UB) by being explicit with what objects we use. Makes it easier to reason about their lifetimes.
Use explicit captures in lambda expressions.
Rationale:
Tend towards NACK. Sorry to rant, but I’m starting to feel quite strongly about this:
If you want to make changes like this, the way to do so is:
Please don’t create a PR out of the blue that changes some formerly unheard-of thing in the entire codebase. This creates review work, extra risk, and all massive idempotent code changes all over the code make it harder to keep track of what is actually changing.