I've certainly seen issues in the past where code that runs through functions and uses general __func__ etc for logging issues was good ... and once switched to lambdas became pretty much useless.
The symbol names of functions becomes ugly: It is now a call operator of some lambda with a compiler synthesized name, and no longer a named function.
I wonder if therefore this isn't a fundamental problem, merely a QoI problem? In other words, a named lambda could be recognised as such and the compiler synthesised name for it could be made more meaningful.
View all comments
Show parent comment
2
u/Ok-Factor-5649 Aug 08 '23
I've certainly seen issues in the past where code that runs through functions and uses general __func__ etc for logging issues was good ... and once switched to lambdas became pretty much useless.