MAIN FEEDS
Do you want to continue?
https://www.reddit.com/r/cpp/comments/1vu3xoh/how_to_write_the_perfect_function/p50jezu/?context=3
r/cpp • u/parkotron • Aug 21 '26
24 comments sorted by
View all comments
Show parent comment
4
I agree. I understand he wanted to show that an honest function can communicate its result through both through its return value and through modifying an argument, but std::remove_if was a poor choice.
std::remove_if
5 u/azswcowboy Aug 21 '26 Still, overall some good thoughts on functional structuring.
5
Still, overall some good thoughts on functional structuring.
View all comments
Show parent comment
4
u/parkotron Aug 21 '26
I agree. I understand he wanted to show that an honest function can communicate its result through both through its return value and through modifying an argument, but
std::remove_ifwas a poor choice.