From: Dirk Gerrits (dirkg_at_[hidden])
Date: 2002-05-15 03:37:27


----- Original Message -----
From: "Samuel Krempp" <krempp_at_[hidden]>
To: <boost_at_[hidden]>
Sent: Wednesday, 15 May, 2002 10:10
Subject: Re: [boost] String formatting library: interest?

> Le lun 13/05/2002 à 23:29, Giovanni Bajo a écrit :
> > > No offence to the python language, but arg seems a lot clearer to me
> > > than %. Never the less, it is of course also possible to implement
> > > both. (Right?)
> >
> > Yes, it is possible.
> >
> > I'm contacting Samuel to discuss about his library.
>
> of course, it is possible, and it takes just a few more lines.
>
> But it's best to chose between the two syntaxes, taking as a rule that a
> library should not provide many parallel ways of doing one thing if they
> all have the same features.

In the Standard library it's common to have a function performing a task
with overloads taking a variety of arguments. And in addition have an
operator overload which does the same as the one parameter overloads.
Look at operator= / assign in some Standard containers just to name one
example.

I'm not saying that this is the way it should be, it's just something to
consider.

Dirk Gerrits