Boost logo

Boost :

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


"Peter Dimov" <pdimov_at_[hidden]> wrote in message
news:02a001c39712$16d66260$1d00a8c0_at_pdimov2...
> 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.

cheers

Thorsten


Boost list run by bdawes at acm.org, gregod at cs.rpi.edu, cpdaniel at pacbell.net, john at johnmaddock.co.uk