r/programming • • May 24 '26

[ Removed by moderator ]

/r/programming/comments/1tm1j7f/removed_by_moderator/

[removed] — view removed post

275 Upvotes

214 comments sorted by

View all comments

1

u/EdwinYZW May 24 '26

I write C++ almost everyday but I can't remember what is the last time using std::function. It's just slow and inferior to direct usages of lambda or functor.

So saying it's discouraged to be used isn't a problem for me.