lmi
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [lmi] Raw strings


From: Greg Chicares
Subject: Re: [lmi] Raw strings
Date: Tue, 9 Mar 2021 12:40:42 +0000
User-agent: Mozilla/5.0 (X11; Linux x86_64; rv:78.0) Gecko/20100101 Thunderbird/78.4.0

On 3/9/21 2:05 AM, Greg Chicares wrote:
> On 3/9/21 12:25 AM, Vadim Zeitlin wrote:
[...]
>> std::string const simple_table_header =
>> 1 + R"""(
[...contents...]
>> )""";
>> 
>> ? This seems quite readable to me and it's short and memorable enough to
>> use it without having to look it up every time.
> 
> Either way is fine with me, as long as we standardize on exactly one.

Having slept on it, I do prefer '--cut-here--' because it's
self-documenting, whereas '"""' is not.

I had thought that '"""' would be easier to test for, and
that testing for '--cut-here--' would require regex lookback:

> please change this line in 'test_coding_rules.cpp':
>     static boost::regex const r(R"(\<R"[^(-])");
> to permit
[...only the canonical d-char-sequence, which...]
> will guarantee uniformity in future?

but now I've found a way to do that without lookback.
Therefore, we won't have to look it up every time, because
'make check_concinnity' will tell us exactly what to do.

I'll push this after a comprehensive system test.


reply via email to

[Prev in Thread] Current Thread [Next in Thread]