220 8632 <1abccd12-9b4f-49ab-8cfd-bad8878f09af@isocpp.org> article
Path: news.gmane.org!not-for-mail
From: Casey Carter <cartec69@gmail.com>
Newsgroups: gmane.comp.lang.c++.isocpp.proposals
Subject: Re: string_view::is_null()
Date: Thu, 16 Jan 2014 14:46:31 -0800 (PST)
Lines: 53
Approved: news@gmane.org
Message-ID: <1abccd12-9b4f-49ab-8cfd-bad8878f09af@isocpp.org>
References: <52d6c23b.6f8a440a.74c7.1675@mx.google.com>
Reply-To: std-proposals@isocpp.org
NNTP-Posting-Host: plane.gmane.org
Mime-Version: 1.0
Content-Type: multipart/alternative; 
	boundary="----=_Part_669_21545897.1389912391642"
X-Trace: ger.gmane.org 1389912387 16166 80.91.229.3 (16 Jan 2014 22:46:27 GMT)
X-Complaints-To: usenet@ger.gmane.org
NNTP-Posting-Date: Thu, 16 Jan 2014 22:46:27 +0000 (UTC)
To: std-proposals@isocpp.org
Original-X-From: std-proposals+bncBD2MLWWVRQMRBSGC4GLAKGQESJWTYWQ@isocpp.org Thu Jan 16 23:46:35 2014
Return-path: <std-proposals+bncBD2MLWWVRQMRBSGC4GLAKGQESJWTYWQ@isocpp.org>
Envelope-to: gclcip-std-proposals@m.gmane.org
Original-Received: from mail-ie0-f197.google.com ([209.85.223.197])
	by plane.gmane.org with esmtp (Exim 4.69)
	(envelope-from <std-proposals+bncBD2MLWWVRQMRBSGC4GLAKGQESJWTYWQ@isocpp.org>)
	id 1W3vhq-0000IS-0g
	for gclcip-std-proposals@m.gmane.org; Thu, 16 Jan 2014 23:46:34 +0100
Original-Received: by mail-ie0-f197.google.com with SMTP id e14sf12981605iej.0
        for <gclcip-std-proposals@m.gmane.org>; Thu, 16 Jan 2014 14:46:33 -0800 (PST)
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed;
        d=gmail.com; s=20120113;
        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
         :content-type;
        bh=YPDX0iOSPshjkiV1cQPqdtbjTWxKw+K8jNG5wJULKAE=;
        b=WQp6kQ5ESj9huJeZ1+MC+Z25F5C01gL4gHmBimliOHSRyg3YooX298j/TpyC/cMI8s
         BADqUSB0oAD9woIwzTszJJ26TtknolnfkDC42ux0o7oMrtllOuQUEhiVwhjlwjuZVf6M
         Wb0lqQNzNqHWZ3XgV23GW4mO7nXoE8UuF2OlovrdncE+A9pp0cmkpV1DpKd/LWp9v6o7
         s6Du6zWDUj/G/wwoLGIgmQNdBgUmu7IH8oXuzEZrQRSB8PiVu01NLbJvD01HsccFvO/X
         Y/iYp97zJnKS6lfurwGALgTkBQoCMpS4HF2iTAajAYQzt0knUIqZI/jv3eNdkmLul/mj
         oI4A==
X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed;
        d=1e100.net; s=20130820;
        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:list-post:list-help:list-archive
         :list-subscribe:list-unsubscribe:content-type;
        bh=YPDX0iOSPshjkiV1cQPqdtbjTWxKw+K8jNG5wJULKAE=;
        b=nIEJFqy+Qcvf8GuMitq2MCYN1T+LL18y7oonjWC8w2Oxo81k4gE9shGPqiVkOj8frl
         FwGhUMG6+spBCFcdmNZkxVkMYWQ6t9wInJ4Z2u8MtiuOT3H3UULHH/uRH4Di/VUhHI3X
         iVV+Lp6oQ5Q9tXa9uXg+1RgpCzS/aLmD866mXbqOM/c4ongyUKUz/WWGt1AToyqyEkcW
         SzbuH+4v8KfBsTjIgYD6GJFyXeEVG9cc2t/U7FywvKPtZ/uA1t+NRZzREa3TqOQM9BT1
         QIJr1/2rOkJjRFy9PlhRKUo1JC8e+HnMBlV3az2ag6Lm4rzXWxtt8vcDnNtrsvM1+hDO
         LKDg==
X-Gm-Message-State: ALoCoQmfT4gdf3+QKFSSUJXw6hQSk/bX47hUm+0UV8P/1XFWfSXt1uZ3Vo3Ya8aujZeBKGvex/U2
X-Received: by 10.42.235.132 with SMTP id kg4mr3970864icb.32.1389912392941;
        Thu, 16 Jan 2014 14:46:32 -0800 (PST)
X-BeenThere: std-proposals@isocpp.org
Original-Received: by 10.182.118.163 with SMTP id kn3ls444718obb.37.gmail; Thu, 16 Jan
 2014 14:46:32 -0800 (PST)
X-Received: by 10.182.117.138 with SMTP id ke10mr1817obb.42.1389912392331;
        Thu, 16 Jan 2014 14:46:32 -0800 (PST)
In-Reply-To: <52d6c23b.6f8a440a.74c7.1675@mx.google.com>
X-Original-Sender: cartec69@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: <http://groups.google.com/a/isocpp.org/group/std-proposals/post>, <mailto:std-proposals@isocpp.org>
List-Help: <http://support.google.com/a/isocpp.org/bin/topic.py?topic=25838>, <mailto:std-proposals+help@isocpp.org>
List-Archive: <http://groups.google.com/a/isocpp.org/group/std-proposals/>
List-Subscribe: <http://groups.google.com/a/isocpp.org/group/std-proposals/subscribe>,
 <mailto:std-proposals+subscribe@isocpp.org>
List-Unsubscribe: <http://groups.google.com/a/isocpp.org/group/std-proposals/subscribe>,
 <mailto:googlegroups-manage+399137483710+unsubscribe@googlegroups.com>
Xref: news.gmane.org gmane.comp.lang.c++.isocpp.proposals:8632
Archived-At: <http://permalink.gmane.org/gmane.comp.lang.c++.isocpp.proposals/8632>

------=_Part_669_21545897.1389912391642
Content-Type: text/plain; charset=UTF-8

On Wednesday, January 15, 2014 11:15:36 AM UTC-6, Billy O'Neal wrote:
>
> It should be discouraged because we don't want to have to write null 
> checks in every function under the sun; it is about preventing callers from 
> supplying unexpected results.
>

"Every function under the sun" must already be able to deal with an empty 
string_view, given that a null string_view must also necessarily be empty, 
there's no need to check for null as a special case.

-- 

--- 
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.
Visit this group at http://groups.google.com/a/isocpp.org/group/std-proposals/.

------=_Part_669_21545897.1389912391642
Content-Type: text/html; charset=UTF-8
Content-Transfer-Encoding: quoted-printable

<div dir=3D"ltr">On Wednesday, January 15, 2014 11:15:36 AM UTC-6, Billy O'=
Neal wrote:<blockquote class=3D"gmail_quote" style=3D"margin: 0;margin-left=
: 0.8ex;border-left: 1px #ccc solid;padding-left: 1ex;"><div style=3D"font-=
size:12pt;font-family:Calibri,sans-serif"><div>It should be discouraged bec=
ause we don't want to have to write null checks in every function under the=
 sun; it is about preventing callers from supplying unexpected results.</di=
v></div></blockquote><div><br></div><div>"Every function under the sun" mus=
t already be able to deal with an empty string_view, given that a null stri=
ng_view must also necessarily be empty, there's no need to check for null a=
s a special case.</div></div>

<p></p>

-- <br />
&nbsp;<br />
--- <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 std-proposals+unsubscribe@isocpp.org.<br />
To post to this group, send email to std-proposals@isocpp.org.<br />
Visit this group at <a href=3D"http://groups.google.com/a/isocpp.org/group/=
std-proposals/">http://groups.google.com/a/isocpp.org/group/std-proposals/<=
/a>.<br />

------=_Part_669_21545897.1389912391642--

.
