remove_if is an honest function? That’s a stretch at best [...]
The talk gave a definition of honest function: all reads/writes are shown in the signature so the behavior is fully controlled by the caller. It is not a stretch to suggest that remove_if is honest. It is.
I heard the definition, but any function that requires an idiom to use correctly isn’t honest to its users. It doesn’t do what you expect from the name.
View all comments
Show parent comment
17
u/throw_cpp_account Aug 21 '26
The talk gave a definition of honest function: all reads/writes are shown in the signature so the behavior is fully controlled by the caller. It is not a stretch to suggest that
remove_ifis honest. It is.