logoalt Hacker News

neobrain06/16/20251 replyview on HN

> If there was a way to name lambdas for debug purposes then all other downsides would be irrelevant (for most usual use cases of using callbacks).

Instead of fully avoiding lambdas, you can use inheritance to give them a name: https://godbolt.org/z/YTMo6ed8T

Sadly that'll only work for captureless lambdas, however.


Replies

zack-alex06/16/2025

[dead]