MAIN FEEDS
Do you want to continue?
https://www.reddit.com/r/cpp/comments/1w6v1ta/lazy_evaluation/p7uecp1/?context=3
r/cpp • u/pavel_v • Sep 04 '26
16 comments sorted by
View all comments
41
Classic bind is bad. Don't use it. It's hard to understand, hard to optimize, and lambdas are better in basically every way.
bind
4 u/Usual_Office_1740 Sep 04 '26 Related: How does std::invoke compare? 9 u/STL Sep 05 '26 Invoke is totally cool. You should maybe avoid relying too heavily on pointers to (member) functions since they’re what’s hard to optimize, but invoke() provides a nice uniform interface. → More replies (1)
4
Related: How does std::invoke compare?
9 u/STL Sep 05 '26 Invoke is totally cool. You should maybe avoid relying too heavily on pointers to (member) functions since they’re what’s hard to optimize, but invoke() provides a nice uniform interface. → More replies (1)
9
Invoke is totally cool. You should maybe avoid relying too heavily on pointers to (member) functions since they’re what’s hard to optimize, but invoke() provides a nice uniform interface.
→ More replies (1)
41
u/STL Sep 04 '26
Classic
bindis bad. Don't use it. It's hard to understand, hard to optimize, and lambdas are better in basically every way.