Boost logo

Boost :

From: Douglas Gregor (gregod_at_[hidden])
Date: 2002-01-20 18:21:20


On Sunday 20 January 2002 05:13 pm, you wrote:
> At 07:49 AM 1/20/2002, Samuel Krempp wrote:
> >Now that I think there is a better candidate than '%', I'll add some
> >arguments for 'operator[]' in the doc. but it's rather a matter of
> >taste, so I'm not sure I will be able to convince people with only a few
> >lines..
>
> I'm sorry. I just find:
>
> cout << format("writing %3, x=%1 : %2-th try") % 40.23 % 50 % "toto";
>
> to be a lot easier to write and read than:
>
> cout << format("writing %3, x=%1 : %2-th try") [40.23] [50] ["toto"];
>
> I have the sense that Ed's operator[] suggestion would solve some technical
> problems, but it just plain looks too ugly to me.
>
> What do others think?

I'd have to agree with favoring '%'. As has been said before, it echoes the
use of '%', which gives away its meaning immediately.

        Doug


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