C++ Logo

std-proposals

Advanced search

Re: [std-proposals] String Slicing Draft Proposal

From: Giuseppe D'Angelo <giuseppe.dangelo_at_[hidden]>
Date: Tue, 26 Mar 2024 11:46:45 +0100
Hi,

On 26/03/2024 09:57, Rhidian De Wit via Std-Proposals wrote:
> My apologies, I accidentally uploaded an older version, the correct
> version can be found in the attachments:

I'm really unsure about this last revision: now you have
std::string::subview which:

* does not return a view (so why is it called sub *view*?);
* has different parameters than the existing *sub*str() despite the very
similar name, so it has a huge surprise factor if one thinks it takes
pos+count (like substr does).

My 2 c,

-- 
Giuseppe D'Angelo

Received on 2024-03-26 10:46:48