Boost logo

Boost :

Subject: Re: [boost] Name and Namespace for Potential Boost Extended Floating-Point
From: Jeffrey Lee Hellrung, Jr. (jeffrey.hellrung_at_[hidden])
Date: 2011-08-31 18:29:35


On Wed, Aug 31, 2011 at 3:16 PM, Christopher Kormanyos <e_float_at_[hidden]>wrote:

> From: Matthias Schabel <boost_at_[hidden]>
> To: boost_at_[hidden]
> Sent: Thursday, September 1, 2011 12:00 AM
> Subject: Re: [boost] Name and Namespace for Potential Boost Extended
> Floating-Point
>
> >> mp_float
> >> mp_int
> >> mp_rational
> >
> > +1
>
> If this is going to be in the "multiprecision" namespace, isn't "mp_*"
> redundant? Why not just
>
> multiprecision::float
> multiprecision::int
> multiprecision::rational
>
> $0.02
>
> ---------------------------------------------------
>
> No, unfortunately not. Please remember when using a namespace, a name
> like "float" can not be distinguished from the POD type float. Remember
> that many developers *use* a namespace to avoid typing.
>
> The ugly prefix is needed to guarantee unique naming.
>

Couldn't you just do what "every" other boost library does, and append an
underscore?

- Jeff


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