Boost logo

Boost :

From: Noel Yap (Noel.Yap_at_[hidden])
Date: 2003-05-02 06:01:13

Bo Persson wrote:
> Having gone from C with pointer parameters and hungaring notation to C++
> with const reference, a function call has changed from
> display(&sz_name);
> to
> display(name)
> which I personally find *soo* much better.
> You now suggest that I should write this
> display(out(name))
> which I don't find *any* improvement at all.

I don't know about anyone else, but I would think that:

  display( name );

would /not/ change the variable name. OTOH:

  display( out( name ) );

is much more clear.

To assuade those that still think there may be ambiguity, what about

  display( in( name ) );

If you see parameters with no qualifiers, it's ambiguous, otherwise,
it's extremely clear.


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