Boost logo

Boost :

Subject: Re: [boost] [RFC] string inserter/extractor "q u o t i n g"
From: vicente.botet (vicente.botet_at_[hidden])
Date: 2010-06-16 13:35:00


----- Original Message -----
From: "Stewart, Robert" <Robert.Stewart_at_[hidden]>
To: <boost_at_[hidden]>
Sent: Wednesday, June 16, 2010 5:56 PM
Subject: Re: [boost] [RFC] string inserter/extractor "q u o t i n g"

>
> Eric Niebler wrote:
>> On 6/16/2010 10:45 AM, Stewart, Robert wrote:
>> > Eric Niebler wrote:
>> >> quote:
>> >> ... 5) to enclose (words) within quotation marks.
>> >
>> > Quotation marks are the default, but the function can be
>> > given a different character to surround the text. Wouldn't
>> > "quote" be misleading if the specified character were, say,
>> > "%"?
>>
>> Perl, for instance, lets you specify the quote character. I don't find
>> that confusing. If I went looking for this function, I'd look for some
>> variant of "quote" first. To me, lists are delimited by e.g. commas.
>
> I daresay you'd look for "quote" first because of your experience with Perl. Nevertheless, prior art is not unavailing.
>
> Even assuming "quote" were generally acceptable, it doesn't connote the escaping behavior in Beman's functions.

Any time you "quote" something, you need to use scape sequence to use the quoting character and the character to escape.

+1 for quote.

Vicente


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