Boost logo

Boost :

Subject: Re: [boost] Formal Review Request: Boost.String.Convert
From: David Abrahams (dave_at_[hidden])
Date: 2009-02-18 14:26:37


on Wed Feb 18 2009, "Stewart, Robert" <Robert.Stewart-AT-sig.com> wrote:

> From: "Stewart, Robert" <Robert.Stewart_at_[hidden]>
> Subject: Re: [boost] Formal Review Request: Boost.String.Convert
> To: "boost_at_[hidden]" <boost_at_[hidden]>
> Date: Wed, 18 Feb 2009 13:02:07 -0500
> Reply-To: boost_at_[hidden]
>
> On Wednesday, February 18, 2009 12:46 PM
> Emil Dotchevski wrote:
>> On Wed, Feb 18, 2009 at 5:52 AM, Stewart, Robert
>> <Robert.Stewart_at_[hidden]> wrote:
>>
>> Many times I've needed to_string without needing from_string. In my
>> book, this is a strong indication that they shouldn't be coupled.
>
> Your argument isn't compelling. Consider an arbitrary precision integer type. If
> many times one need only add such values, without also needing subtraction, should
> those operations be separated one from the other?

Perhaps. Not every monoid is a group:
http://en.wikipedia.org/wiki/Algebraic_structure

-- 
Dave Abrahams
BoostPro Computing
http://www.boostpro.com

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