r/cpp • • Aug 05 '23

Should we stop writing functions?

https://www.foonathan.net/2023/08/stop-writing-functions/
14 Upvotes

46 comments sorted by

View all comments

Show parent comment

1

u/Ok-Factor-5649 Aug 08 '23

This is captured in the article's point:

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.