Boost logo

Boost :

From: Thorsten Ottosen (nesotto_at_[hidden])
Date: 2003-10-20 10:00:08

"Peter Dimov" <pdimov_at_[hidden]> wrote in message
> Thorsten Ottosen wrote:
> > I and why is it an error? What about this error:
> >
> > trim( s ); // bug: s is not changed
> >
> > ?
> <shrug>
> std::sin(x); // bug: x is not changed
> FWIW, I much prefer the functional style in this case.

My point was that (most) verbs in the imperative means mutation, nothing
else. I expect
mutation to happen in those cases. I also expect a function called remove()
to mutate the input and
I consider a different behavior very strange.



Boost list run by bdawes at, gregod at, cpdaniel at, john at