From: Gustavo Guerra (gustavobt_at_[hidden])
Date: 2002-01-31 10:25:35


----- Original Message -----
From: "bill_kempf" <williamkempf_at_[hidden]>
> When speaking of locality, to me the important thing is to keep the
> formatting code with the object being formatted. In other words, I
> think that:
>
> cout << format("[1]") << width(10) << foo;
>
> is much preferrable to:
>
> cout << format("[1:10]") << foo;
>
> I think it's easier to read and comprehend, and it certainly will
> make the translation of the format string easier.
>

But what if the width must change with the translation? You need to put
those kind of things in the format string. The same for other modifiers.

Gustavo Guerra