220 24664 <CAFk2RUbbNQT2Epasyw8AzFJT_P5x1Zdt194+Bja9D5tWH8bH7g@mail.gmail.com> article
Path: news.gmane.org!not-for-mail
From: Ville Voutilainen <ville.voutilainen@gmail.com>
Newsgroups: gmane.comp.lang.c++.isocpp.proposals
Subject: Re: Re: String View Status?
Date: Thu, 25 Feb 2016 17:45:10 +0200
Lines: 49
Approved: news@gmane.org
Message-ID: <CAFk2RUbbNQT2Epasyw8AzFJT_P5x1Zdt194+Bja9D5tWH8bH7g@mail.gmail.com>
References: <ac814908-ca45-43db-9b96-ecbb4216e361@isocpp.org>
	<90aa729e-e9b7-436f-abe5-ed856f0fd561@isocpp.org>
	<CANh-dX=L+=RuewhuL68rEBOhEYvg-LQf-zWenF2gGWd3Qb2bng@mail.gmail.com>
	<477b147e-f082-4ccd-b286-0c174f02321d@isocpp.org>
	<CAB+4KHKiaUtHe5A1yYDHp0qPRHBHg1q46sf7JQ4DjnJCyhKFzQ@mail.gmail.com>
	<5bf5ca4e-c38d-4e75-abd0-7181708d73b7@isocpp.org>
	<CANh-dXk7svEJbs15JoavwRFtziYFropk30EcR4JLMd3rgFfbQw@mail.gmail.com>
	<1f0bc9e9-79a9-468a-bd66-080096a19861@isocpp.org>
	<CAFk2RUbejRStAXExRwfxVbrSNKfJbxJL0rFfYwRLe49DAf4EPA@mail.gmail.com>
	<bc409340-6438-4643-8c37-c7e55687d3c5@isocpp.org>
	<CAFk2RUaZ6v_C0vakjKqpntwkdfbCcML-An52f_ssOmRv-fXOqQ@mail.gmail.com>
	<a02492f4-144e-4027-bb54-35b94759dae0@isocpp.org>
Reply-To: std-proposals@isocpp.org
NNTP-Posting-Host: plane.gmane.org
Mime-Version: 1.0
Content-Type: text/plain; charset=UTF-8
X-Trace: ger.gmane.org 1456415113 8255 80.91.229.3 (25 Feb 2016 15:45:13 GMT)
X-Complaints-To: usenet@ger.gmane.org
NNTP-Posting-Date: Thu, 25 Feb 2016 15:45:13 +0000 (UTC)
To: "ISO C++ Standard - Future Proposals" <std-proposals@isocpp.org>
Original-X-From: std-proposals+bncBC5JHI7A7ALRBBWDXS3AKGQERFC2FNY@isocpp.org Thu Feb 25 16:45:13 2016
Return-path: <std-proposals+bncBC5JHI7A7ALRBBWDXS3AKGQERFC2FNY@isocpp.org>
Envelope-to: gclcip-std-proposals@m.gmane.org
Original-Received: from mail-ig0-f200.google.com ([209.85.213.200])
	by plane.gmane.org with esmtp (Exim 4.69)
	(envelope-from <std-proposals+bncBC5JHI7A7ALRBBWDXS3AKGQERFC2FNY@isocpp.org>)
	id 1aYy6K-0000eZ-Ep
	for gclcip-std-proposals@m.gmane.org; Thu, 25 Feb 2016 16:45:12 +0100
Original-Received: by mail-ig0-f200.google.com with SMTP id rx16sf41441403igc.3
        for <gclcip-std-proposals@m.gmane.org>; Thu, 25 Feb 2016 07:45:12 -0800 (PST)
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed;
        d=isocpp-org.20150623.gappssmtp.com; s=20150623;
        h=mime-version:in-reply-to:references:date:message-id:subject:from:to
         :x-original-sender:x-original-authentication-results:reply-to
         :precedence:mailing-list:list-id:x-spam-checked-in-group:list-post
         :list-help:list-archive:list-subscribe:list-unsubscribe;
        bh=3IBUZGbB0LS80SSxplb4Ayp/02sJFZ4RA8yxchP/BZU=;
        b=WOYG7422mGBhPE95z0g2LvM3k+SySUEpdj+TrYM9/IO0M0GnCf/RHmE5GgCfII4wep
         KNMOfXvq82ldHP6iy9ZkI+grXj8n46rGtsE6RhoLd6msWrPoWMP5NsmpMONtYLw5A/zT
         oDIQu3aEow1MOtCh05vZEcVNwYxXa0UiupJ/7IyrWn60SbneX6AiHhL7us9teqi6CtuE
         AAe62gRozm+ju0bera3bL3JvIfdR96ChJsoqPccDNjRgDDvDf9H2Gmkaekth0iklKCof
         0BXzwzmVS419o2/Ocnx9RYeyvBxQXbVuCxw2sxazBPXuM+4836V90lDTVg3u7LGH9ScZ
         ITXQ==
X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed;
        d=1e100.net; s=20130820;
        h=x-gm-message-state:mime-version:in-reply-to:references:date
         :message-id:subject:from:to:x-original-sender
         :x-original-authentication-results:reply-to:precedence:mailing-list
         :list-id:x-spam-checked-in-group:list-post:list-help:list-archive
         :list-subscribe:list-unsubscribe;
        bh=3IBUZGbB0LS80SSxplb4Ayp/02sJFZ4RA8yxchP/BZU=;
        b=mYIyZF/dGIMrnrCHViZQIu7nU2bjEfrfpcBUHunZPkotoi3Y71a72EDf43tionBHMt
         RaPUOBEAL4tO/RlZpaKOwPB+SGq8hKI9sn/dXqdgKkE8Rn2jbKZ6TlGVETdPxrX6SVhb
         oiRIf1tc295vwt8ZlW1UAARvTVDqEcKK0rYxA/Rf8OPpV3NDpdF8iy3wdkhGzU870n1N
         RH7oro4EaRVy+mQQ5quUVrb6dvgHEj86tRwwTRYu/hJDdGQPgnZKIbczCc4BzzhShx3N
         iMQxUVFASY67ZNeSnryey+VLosSwDWPyS5neQ0qvF8d97zvrgi2GkyQIvQvmTvaBRuIW
         fIqA==
X-Gm-Message-State: AG10YOTm3VPfGdj2pM5owvEJUZl/ZZWwZO7p/OwzRqw9j9IuzVmlVIvWhXIPZ0NxSNGWbw==
X-Received: by 10.50.79.161 with SMTP id k1mr2868376igx.5.1456415111435;
        Thu, 25 Feb 2016 07:45:11 -0800 (PST)
X-BeenThere: std-proposals@isocpp.org
Original-Received: by 10.140.16.40 with SMTP id 37ls401932qga.14.gmail; Thu, 25 Feb
 2016 07:45:10 -0800 (PST)
X-Received: by 10.31.32.14 with SMTP id g14mr37903596vkg.8.1456415110289;
        Thu, 25 Feb 2016 07:45:10 -0800 (PST)
Original-Received: from mail-vk0-x22e.google.com (mail-vk0-x22e.google.com. [2607:f8b0:400c:c05::22e])
        by mx.google.com with ESMTPS id b207si5543591vkf.202.2016.02.25.07.45.10
        for <std-proposals@isocpp.org>
        (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128);
        Thu, 25 Feb 2016 07:45:10 -0800 (PST)
Received-SPF: pass (google.com: domain of ville.voutilainen@gmail.com designates 2607:f8b0:400c:c05::22e as permitted sender) client-ip=2607:f8b0:400c:c05::22e;
Original-Received: by mail-vk0-x22e.google.com with SMTP id e185so50979303vkb.1
        for <std-proposals@isocpp.org>; Thu, 25 Feb 2016 07:45:10 -0800 (PST)
X-Received: by 10.31.141.75 with SMTP id p72mr38028713vkd.13.1456415110140;
 Thu, 25 Feb 2016 07:45:10 -0800 (PST)
Original-Received: by 10.103.112.131 with HTTP; Thu, 25 Feb 2016 07:45:10 -0800 (PST)
In-Reply-To: <a02492f4-144e-4027-bb54-35b94759dae0@isocpp.org>
X-Original-Sender: ville.voutilainen@gmail.com
X-Original-Authentication-Results: mx.google.com;       spf=pass (google.com:
 domain of ville.voutilainen@gmail.com designates 2607:f8b0:400c:c05::22e as
 permitted sender) smtp.mailfrom=ville.voutilainen@gmail.com;       dkim=pass
 header.i=@gmail.com;       dmarc=pass (p=NONE dis=NONE) header.from=gmail.com
Precedence: list
Mailing-list: list std-proposals@isocpp.org; contact std-proposals+owners@isocpp.org
List-ID: <std-proposals.isocpp.org>
X-Spam-Checked-In-Group: std-proposals@isocpp.org
X-Google-Group-Id: 399137483710
List-Post: <https://groups.google.com/a/isocpp.org/group/std-proposals/post>, <mailto:std-proposals@isocpp.org>
List-Help: <https://support.google.com/a/isocpp.org/bin/topic.py?topic=25838>, <mailto:std-proposals+help@isocpp.org>
List-Archive: <https://groups.google.com/a/isocpp.org/group/std-proposals/>
List-Subscribe: <https://groups.google.com/a/isocpp.org/group/std-proposals/subscribe>,
 <mailto:std-proposals+subscribe@isocpp.org>
List-Unsubscribe: <mailto:googlegroups-manage+399137483710+unsubscribe@googlegroups.com>,
 <https://groups.google.com/a/isocpp.org/group/std-proposals/subscribe>
Xref: news.gmane.org gmane.comp.lang.c++.isocpp.proposals:24664
Archived-At: <http://permalink.gmane.org/gmane.comp.lang.c++.isocpp.proposals/24664>

On 25 February 2016 at 17:41, Nicol Bolas <jmckesson@gmail.com> wrote:
> On Wednesday, February 24, 2016 at 2:10:18 PM UTC-5, Ville Voutilainen
> wrote:
>>
>> On 24 February 2016 at 19:43, Nicol Bolas <jmck...@gmail.com> wrote:
>> > On Wednesday, February 24, 2016 at 9:54:45 AM UTC-5, Ville Voutilainen
>> > wrote:
>> >>
>> >> On 24 February 2016 at 16:44, Nicol Bolas <jmck...@gmail.com> wrote:
>> >> >> I'm definitely looking for use cases for modifying the data pointed
>> >> >> to
>> >> >> by
>> >> >> a string_view, where you're not equally well-served by a span<char>.
>> >> > You mean besides the very important semantic distinction between
>> >> > "this
>> >> > is an
>> >> > array of bytes" and "this is a string"? A function that takes
>> >> > `span<char>`
>> >> > is taking a byte array. A function that takes `string_span<char>`
>> >> > could
>> >> > is
>> >> > taking a string and it will interpret its bytes as such.
>> >>
>> >> I don't quite follow what you mean by "taking a string and will
>> >> interpret its bytes as such".
>> >
>> >
>> > That it might do things with it that you do with strings, which are
>> > distinct
>> > from actions you take with arbitrary byte arrays.
>>
>> Well, neither string_view nor string_span guarantee that you're
>> dealing with a "string", whatever you
>> choose to mean by that.
>
>
> ... I'm not sure what your point is.

You wrote " A function that takes `string_span<char>` is taking a
string and it will interpret its bytes as such."
That's certainly not the case with the proposed string_span, because
it doesn't guarantee that it stores a "string".

-- 
You received this message because you are subscribed to the Google Groups "ISO C++ Standard - Future Proposals" group.
To unsubscribe from this group and stop receiving emails from it, send an email to std-proposals+unsubscribe@isocpp.org.
To post to this group, send email to std-proposals@isocpp.org.
To view this discussion on the web visit https://groups.google.com/a/isocpp.org/d/msgid/std-proposals/CAFk2RUbbNQT2Epasyw8AzFJT_P5x1Zdt194%2BBja9D5tWH8bH7g%40mail.gmail.com.

.
