Boost logo

Boost :

Subject: Re: [boost] Formal Review Request: Boost.String.Convert
From: Stewart, Robert (Robert.Stewart_at_[hidden])
Date: 2009-02-18 13:21:25


On Wednesday, February 18, 2009 1:15 PM
Steven Watanabe wrote:
> Stewart, Robert wrote:
> > On Wednesday, February 18, 2009 12:46 PM
> > Emil Dotchevski 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?
>
> It isn't necessary to separate them, but it is not
> unreasonable to do so
> either.

I won't argue that point, but it only applies if there are two such sets of functions. If there isn't "from_string" and "to_string," but only, for example, "convert," then there's no point in separate headers. It's a question of whether "string" should be at the center of the conversions as it is with "from_string" and "to_string."

_____
Rob Stewart robert.stewart_at_[hidden]
Software Engineer, Core Software using std::disclaimer;
Susquehanna International Group, LLP http://www.sig.com

IMPORTANT: The information contained in this email and/or its attachments is confidential. If you are not the intended recipient, please notify the sender immediately by reply and immediately delete this message and all its attachments. Any review, use, reproduction, disclosure or dissemination of this message or any attachment by an unintended recipient is strictly prohibited. Neither this message nor any attachment is intended as or should be construed as an offer, solicitation or recommendation to buy or sell any security or other financial instrument. Neither the sender, his or her employer nor any of their respective affiliates makes any warranties as to the completeness or accuracy of any of the information contained herein or that this message or any of its attachments is free of viruses.


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