Subject: Re: [boost] [string] proposal
From: Stewart, Robert (Robert.Stewart_at_[hidden])
Date: 2011-01-27 09:55:59
Dean Michael Berris wrote:
> On Thu, Jan 27, 2011 at 10:05 PM, Stewart, Robert
> <Robert.Stewart_at_[hidden]> wrote:
> > Names are important. I think this discussion would make
> > more progress if Dean's "string" were given another name,
> > like "bytes," and his "view" were named "string" or perhaps
> > "string_view."
> Okay, I think I have to divorce the thought of "what a string should
> be" from the name "string". I like `bytes` but unfortunately it
> somehow implicitly conveys mutability -- because computers keep
> reading and writing bytes after all. Maybe a name that denotes
> immutability would be good.
"bytes" conveys mutability no more nor less than does "string."
> So for lack of a more creative name, I'll call it `istring` which
> conveys immutability and string semantics.
That's short, but not descriptive. The "i" prefix is more suggestive of "interface" than "immutable" to me. Why not just go whole hog and call it "immutable_string" as Artyom suggested?
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