220 33725 <da7f5e95-c1b7-4119-aff2-8eb20fec0a48@isocpp.org> article
Path: news.gmane.org!.POSTED!not-for-mail
From: Nicol Bolas <jmckesson@gmail.com>
Newsgroups: gmane.comp.lang.c++.isocpp.proposals
Subject: Re: Re: string_view for fstream::open()
Date: Wed, 9 Aug 2017 08:27:10 -0700 (PDT)
Lines: 87
Approved: news@gmane.org
Message-ID: <da7f5e95-c1b7-4119-aff2-8eb20fec0a48@isocpp.org>
References: <cb7b55ab-7113-4d99-949b-8568627d0b7f@isocpp.org> <a5d35071-ebd9-4c12-94a0-71d991047a8d@isocpp.org> <eb44aadb-aa1b-4457-95c3-a05d7b193818@isocpp.org>
 <3050218.VQ5TFqK1h4@tjmaciei-mobl1>
Reply-To: std-proposals@isocpp.org
NNTP-Posting-Host: blaine.gmane.org
Mime-Version: 1.0
Content-Type: multipart/mixed; 
	boundary="----=_Part_5659_140491240.1502292430426"
X-Trace: blaine.gmane.org 1502292431 31299 195.159.176.226 (9 Aug 2017 15:27:11 GMT)
X-Complaints-To: usenet@blaine.gmane.org
NNTP-Posting-Date: Wed, 9 Aug 2017 15:27:11 +0000 (UTC)
To: ISO C++ Standard - Future Proposals <std-proposals@isocpp.org>
Original-X-From: std-proposals+bncBCEKFTV6ZUMBBT6TVTGAKGQEPROZ5DI@isocpp.org Wed Aug 09 17:27:06 2017
Return-path: <std-proposals+bncBCEKFTV6ZUMBBT6TVTGAKGQEPROZ5DI@isocpp.org>
Envelope-to: gclcip-std-proposals@m.gmane.org
Original-Received: from mail-yw0-f198.google.com ([209.85.161.198])
	by blaine.gmane.org with esmtp (Exim 4.84_2)
	(envelope-from <std-proposals+bncBCEKFTV6ZUMBBT6TVTGAKGQEPROZ5DI@isocpp.org>)
	id 1dfSsz-0007tr-TY
	for gclcip-std-proposals@m.gmane.org; Wed, 09 Aug 2017 17:27:06 +0200
Original-Received: by mail-yw0-f198.google.com with SMTP id n140sf104883741ywd.13
        for <gclcip-std-proposals@m.gmane.org>; Wed, 09 Aug 2017 08:27:12 -0700 (PDT)
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed;
        d=isocpp-org.20150623.gappssmtp.com; s=20150623;
        h=date:from:to:message-id:in-reply-to:references:subject:mime-version
         :x-original-sender:reply-to:precedence:mailing-list:list-id
         :list-post:list-help:list-archive:list-subscribe:list-unsubscribe;
        bh=v2K/xjq5TeSAaMSpy+xAjUq98KXVMqhMHYn1EB3pOEs=;
        b=xK7mvvX2fNEQkY/+s511SDn4NJHyAAZXcdIsLvDh8hbWnoiLaKALgmnpwKkYBS/VZ6
         1xqDu7eZonHG7T807TKv11mO9CwRN5yucl9lMBcQefpmYIeh78ZyqHGyxodxOk4ucBa5
         lmHYzju5//msZ1qjnY5S7ExBPFxr7z/aGAiH9OgHlEJYdAD1LpYd/QGoAiRJPIVfsvLr
         rmIM084ULPGQH05M3UX4BmHpaF9fRjREy15WqqU7qWuCpZ/7Ng0cwZURkzD74m/aSwxC
         JVFbJ9UBm8gM2V+RDt0c9P3yS9O7wQHJinRt9texFsrIcYHAKPEOOeZQQk3BI88hzWVH
         kAug==
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed;
        d=gmail.com; s=20161025;
        h=date:from:to:message-id:in-reply-to:references:subject:mime-version
         :x-original-sender:reply-to:precedence:mailing-list:list-id
         :list-post:list-help:list-archive:list-subscribe:list-unsubscribe;
        bh=v2K/xjq5TeSAaMSpy+xAjUq98KXVMqhMHYn1EB3pOEs=;
        b=j0c0Z+vI7YUB1Azmi3B0iP1k7xgcSce6hw/kZRxHgU5vjlnp9PCQmsYsup/6gMw6Fr
         EVOeplrbQv3a42ns/MiHZYfrJgMBvsmsVhk9T0AK8cEcfL78TFp6uKvojSFaw3xYTL5K
         CsjUX/rU4rRxgErWYfMNRzESUDdk66AIPJhaGphHRm6NkwTuQYZnbft8Bp4RI0Thb6WD
         oEgORfAm82qjlrSThBfdnzKULcWaiLsnFN8LW+MyMJ2rDj6hPy7JTnWOeABfGa3TzWle
         am491DE1qMVjevDzSc9pXRILtCQGYs78ZX5CCbCm7eOOcSpTsrfJpCzPrCdjO6x8ZHtP
         Igeg==
X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed;
        d=1e100.net; s=20161025;
        h=x-gm-message-state:date:from:to:message-id:in-reply-to:references
         :subject:mime-version:x-original-sender:reply-to:precedence
         :mailing-list:list-id:x-spam-checked-in-group:list-post:list-help
         :list-archive:list-subscribe:list-unsubscribe;
        bh=v2K/xjq5TeSAaMSpy+xAjUq98KXVMqhMHYn1EB3pOEs=;
        b=ZpMVcVNX1AU9Y7reghm/UtbwFOWXIOFRZ62uE+FTcTS0lrpmsFWhgBgapynvhflEox
         oyrz72BNqGA6gnxbewpgpoSlk1DAdSohFVShUSww1RjVGu2GE4q4L2fofdFL2tiroOQ5
         NUbvSsotJ9DpWhuYXU+285rCzaSwe/uBqc3NGKydet0lWhlTc9G6hFQPfv3OIA0diB4f
         lglLVNY7Rb9F/qV4HBP7/yIH6dmEJq2r4nPpvcyO9uc5i3vuOjt0qA/EuY9M0am8kswn
         M3+TvppandMnH0M+cDBuTGCQ0AmkQCpBQXOEwTuL1snUcS3vbyWGydPbdXHziis+Z1uK
         pypg==
X-Gm-Message-State: AHYfb5hfE3e2znGgN3jFK8UcoZg2eAPMD8fxkcajqlTVJhw0vyDvDJys
	j09hpVTHMbNeyVR2
X-Received: by 10.129.132.135 with SMTP id u129mr5242193ywf.106.1502292432158;
        Wed, 09 Aug 2017 08:27:12 -0700 (PDT)
X-BeenThere: std-proposals@isocpp.org
Original-Received: by 10.107.180.215 with SMTP id d206ls5682845iof.31.gmail; Wed, 09
 Aug 2017 08:27:10 -0700 (PDT)
X-Received: by 10.31.191.67 with SMTP id p64mr43982vkf.4.1502292430897;
        Wed, 09 Aug 2017 08:27:10 -0700 (PDT)
In-Reply-To: <3050218.VQ5TFqK1h4@tjmaciei-mobl1>
X-Original-Sender: jmckesson@gmail.com
Precedence: list
Mailing-list: list std-proposals@isocpp.org; contact std-proposals+owners@isocpp.org
List-ID: <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:33725
Archived-At: <http://permalink.gmane.org/gmane.comp.lang.c++.isocpp.proposals/33725>

------=_Part_5659_140491240.1502292430426
Content-Type: multipart/alternative; 
	boundary="----=_Part_5660_1539777604.1502292430427"

------=_Part_5660_1539777604.1502292430427
Content-Type: text/plain; charset="UTF-8"



On Wednesday, August 9, 2017 at 11:04:17 AM UTC-4, Thiago Macieira wrote:
>
> On Wednesday, 9 August 2017 03:13:50 PDT Julian Watzinger wrote: 
> > Quite unfortunate  Its one thing to have a c-style API, which I 
> > personally dislike when compared to modern C++; but to have the API 
> > rrestrict the input-data in such a way... I'll still hope that at some 
> > point, now that we actually have string_view, people will start to see 
> this 
> > as a necessity 
>
> Do you mean those C developers developing C API? Including people actively 
> hostile to C++, like Linus Torvalds? 
>
> When do you think they will see std::string_view as a necessity? 
>

It's not about making them adopt `string_view` specifically. It's more 
about them taking string+length. Right now, those APIs *require* 
NUL-termination of strings.

But there are some C APIs that take a string+length. Lua, for example. 
OpenGL's shader APIs are another example.

-- 
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/da7f5e95-c1b7-4119-aff2-8eb20fec0a48%40isocpp.org.

------=_Part_5660_1539777604.1502292430427
Content-Type: text/html; charset="UTF-8"
Content-Transfer-Encoding: quoted-printable

<div dir=3D"ltr"><br><br>On Wednesday, August 9, 2017 at 11:04:17 AM UTC-4,=
 Thiago Macieira wrote:<blockquote class=3D"gmail_quote" style=3D"margin: 0=
;margin-left: 0.8ex;border-left: 1px #ccc solid;padding-left: 1ex;">On Wedn=
esday, 9 August 2017 03:13:50 PDT Julian Watzinger wrote:
<br>&gt; Quite unfortunate =C2=A0Its one thing to have a c-style API, which=
 I
<br>&gt; personally dislike when compared to modern C++; but to have the AP=
I
<br>&gt; rrestrict the input-data in such a way... I&#39;ll still hope that=
 at some
<br>&gt; point, now that we actually have string_view, people will start to=
 see this
<br>&gt; as a necessity=20
<br>
<br>Do you mean those C developers developing C API? Including people activ=
ely=20
<br>hostile to C++, like Linus Torvalds?
<br>
<br>When do you think they will see std::string_view as a necessity?
<br></blockquote><div><br>It&#39;s not about making them adopt `string_view=
` specifically. It&#39;s more about them taking string+length. Right now, t=
hose APIs <i>require</i> NUL-termination of strings.<br><br>But there are s=
ome C APIs that take a string+length. Lua, for example. OpenGL&#39;s shader=
 APIs are another example.<br></div></div>

<p></p>

-- <br />
You received this message because you are subscribed to the Google Groups &=
quot;ISO C++ Standard - Future Proposals&quot; group.<br />
To unsubscribe from this group and stop receiving emails from it, send an e=
mail to <a href=3D"mailto:std-proposals+unsubscribe@isocpp.org">std-proposa=
ls+unsubscribe@isocpp.org</a>.<br />
To post to this group, send email to <a href=3D"mailto:std-proposals@isocpp=
..org">std-proposals@isocpp.org</a>.<br />
To view this discussion on the web visit <a href=3D"https://groups.google.c=
om/a/isocpp.org/d/msgid/std-proposals/da7f5e95-c1b7-4119-aff2-8eb20fec0a48%=
40isocpp.org?utm_medium=3Demail&utm_source=3Dfooter">https://groups.google.=
com/a/isocpp.org/d/msgid/std-proposals/da7f5e95-c1b7-4119-aff2-8eb20fec0a48=
%40isocpp.org</a>.<br />

------=_Part_5660_1539777604.1502292430427--

------=_Part_5659_140491240.1502292430426--

.
