Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add rule about preferring lambdas to std::bind #1796

Open
danieru98 opened this issue Jun 22, 2021 · 1 comment
Open

Add rule about preferring lambdas to std::bind #1796

danieru98 opened this issue Jun 22, 2021 · 1 comment

Comments

@danieru98
Copy link

Currently the guidelines only mention this in the unclassified proto-rules section.

And speaking of std::bind, Stephen T. Lavavej criticizes it so much I’m starting to wonder if it is indeed going to fade away in future. Should lambdas be recommended instead?

But Herb Sutter[1] and Scott Meyers[2] agree std::bind should be avoided, so perhaps a rule on the matter is in order.

[1] #811 (comment)
[2] Effective Modern C++ Item 34: Prefer lambdas to std::bind

@cubbimew
Copy link
Member

Yes, I am on the hook to do all of #811 but feel free to put a PR in for this one.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants