Boost logo

Boost :

From: Rainer Deyke (root_at_[hidden])
Date: 2002-01-20 18:05:37


----- Original Message -----
From: "Beman Dawes" <bdawes_at_[hidden]>
To: <boost_at_[hidden]>; <boost_at_[hidden]>
Sent: Sunday, January 20, 2002 3:13 PM
Subject: Re: [boost] Boost.Format review comments - [] vs %

> 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 find the aesthetic aspect completely irrelevant. What matters is
readability, writability and maintainability.

I do really like the Python syntax:

  "%s %s." % ("Hello", "world")

The comma combines the two strings in a tuple, the parentheses are
there because of operator precedence rules, and '%' is an overloaded
operator that performs printf-style formatting if the lhs is a string.

--
Rainer Deyke (root_at_[hidden])
Shareware computer games           -           http://rainerdeyke.com
"In ihren Reihen zu stehen heisst unter Feinden zu kaempfen" - Abigor

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