Boost logo

Boost :

Subject: Re: [boost] Review Request: Introduction of boost::string namespace and string-conversion functions
From: vicente.botet (vicente.botet_at_[hidden])
Date: 2009-02-13 12:15:52


----- Original Message -----
From: "Andrey Semashev" <andrey.semashev_at_[hidden]>
To: <boost_at_[hidden]>
Sent: Friday, February 13, 2009 5:41 PM
Subject: Re: [boost] Review Request: Introduction of boost::string namespace and string-conversion functions

>
> Vladimir.Batov_at_[hidden] wrote:
>> 3. Naming of the conversion functions.
>>
>> The "to/from/is" set seems to sit well with the majority of people.
>>
>> The to_string/from_string was floated around as alternatives. I feel that
>> the "_string" extension indeed serves a mildly useful purpose when the
>> "string" namespace is obfuscated. Like
>>
>> namespace boost::string obfuscated;
>>
>> string str = obfuscated::from(i); // What the...?
>> string str = obfuscated::to_string(i); // Somewhat better but
>> still...
>
> I must say, this is my case. However, I tend to use acronyms for
> namespace aliases:
>
> namespace bll = boost::lambda;
> namespace bmi = boost::multi_index;
>
> As for this tool, I would probably
>
> namespace bsl = boost::string;

Not on your Boost.Log library doccumentation ;-)

Cheers,
Vicente


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