Boost logo

Boost :

From: David Abrahams (dave_at_[hidden])
Date: 2003-04-25 16:50:48

"Justin M. Lewis" <boost_at_[hidden]> writes:

> Even if you want to argue you don't LIKE out and in/out params, that doesn't
> mean other people don't use them. So, working under the assumption that
> they ARE used, would you rather see,
> f(x, y, z);
> or
> f(out(x), in_out(y), z);
> in the code, so you KNOW at the point of invocation what's going on? The
> point here is so that, when you're reading the code later you can see what
> the person before you was doing. Obviously if you're the one writing and
> designing all of the code, you don't need clarification on what your own
> intent was.

But if I can retrofit f() to require these out/in_out things, I can
also redesign it to avoid out parameters, can't I?

Dave Abrahams
Boost Consulting

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