220 8616 <CAGg_6+MTCuU5CnCz7EdJdtzTRcOJQP_4=eym3x__3nOGemCj5g@mail.gmail.com> article
Path: news.gmane.org!not-for-mail
From: Nevin Liber <nevin@eviloverlord.com>
Newsgroups: gmane.comp.lang.c++.isocpp.proposals
Subject: Re: string_view::is_null()
Date: Wed, 15 Jan 2014 13:52:17 -0600
Lines: 69
Approved: news@gmane.org
Message-ID: <CAGg_6+MTCuU5CnCz7EdJdtzTRcOJQP_4=eym3x__3nOGemCj5g@mail.gmail.com>
References: <8045a4d2-721d-4725-8bb7-7a91b6f53ec8@isocpp.org>
 <2875722.TjfBuHt6Pp@tjmaciei-mobl2> <CANh-dX=N0DhDbHh5TdaGcc5K5x=qOV6itWJzgVP8aG2facA3RA@mail.gmail.com>
 <2685690.E3vksNc10o@tjmaciei-mobl2>
Reply-To: std-proposals@isocpp.org
NNTP-Posting-Host: plane.gmane.org
Mime-Version: 1.0
Content-Type: multipart/alternative; boundary=001a1134d2dacd940c04f007a7f4
X-Trace: ger.gmane.org 1389815573 7571 80.91.229.3 (15 Jan 2014 19:52:53 GMT)
X-Complaints-To: usenet@ger.gmane.org
NNTP-Posting-Date: Wed, 15 Jan 2014 19:52:53 +0000 (UTC)
To: "std-proposals@isocpp.org" <std-proposals@isocpp.org>
Original-X-From: std-proposals+bncBCE35H5S6IDBBGWO3OLAKGQE3AXKK5A@isocpp.org Wed Jan 15 20:53:01 2014
Return-path: <std-proposals+bncBCE35H5S6IDBBGWO3OLAKGQE3AXKK5A@isocpp.org>
Envelope-to: gclcip-std-proposals@m.gmane.org
Original-Received: from mail-ee0-f70.google.com ([74.125.83.70])
	by plane.gmane.org with esmtp (Exim 4.69)
	(envelope-from <std-proposals+bncBCE35H5S6IDBBGWO3OLAKGQE3AXKK5A@isocpp.org>)
	id 1W3WWJ-0006RB-Ur
	for gclcip-std-proposals@m.gmane.org; Wed, 15 Jan 2014 20:53:00 +0100
Original-Received: by mail-ee0-f70.google.com with SMTP id d17sf3727066eek.1
        for <gclcip-std-proposals@m.gmane.org>; Wed, 15 Jan 2014 11:52:58 -0800 (PST)
X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed;
        d=1e100.net; s=20130820;
        h=x-gm-message-state:mime-version:sender:in-reply-to:references:from
         :date:message-id:subject:to:x-original-sender
         :x-original-authentication-results:reply-to:precedence:mailing-list
         :list-id:list-post:list-help:list-archive:list-subscribe
         :list-unsubscribe:content-type;
        bh=0UGkQI0AkSiI/q3ffLlJTrs/Il7s2MiK+5jNPOgKBwg=;
        b=Tsn89joZ+3vksgjXx7qkuHohDNx7Uru5mu2XAguWX+6cbefGHze5stjqPd2+eMzUGQ
         xkX2+ssX8w3mqzczXSEIGOK7J1qWD6orSiUz1/ikGV9+MwlUo5TWEqk0k5LF1Ljk6bD2
         GP2/vARKy0p8AKE6BpyNBBSqOWI3c0eH7zdFmetCMNHrGxbuNXJqq/2gsCy6lbpMSyPV
         2r9gfZt1gksvDFls9zX8xc6TCqd1nm1B23Mk8wGpYkXtMWogmMsBR7s7gnBBTM9QFOba
         sgjzSJH9kW3RG0F18Ejlk0X63ztMLzjLln30+j+dKlCvhURmLuiTVIe6RsGsgMP9F/uQ
         2jwQ==
X-Gm-Message-State: ALoCoQn+yTX+QdYrOwb+dPy/HTwmQB/1y+8TQLa+wXXZsoSF0Curl/GGPQaF4A+rFzC5xb2ctcbk
X-Received: by 10.152.245.169 with SMTP id xp9mr1937381lac.2.1389815578916;
        Wed, 15 Jan 2014 11:52:58 -0800 (PST)
X-BeenThere: std-proposals@isocpp.org
Original-Received: by 10.180.21.148 with SMTP id v20ls590610wie.34.canary; Wed, 15 Jan
 2014 11:52:58 -0800 (PST)
X-Received: by 10.194.82.105 with SMTP id h9mr4289561wjy.52.1389815577995;
        Wed, 15 Jan 2014 11:52:57 -0800 (PST)
Original-Received: from mail-we0-x22a.google.com (mail-we0-x22a.google.com [2a00:1450:400c:c03::22a])
        by mx.google.com with ESMTPS id dj2si3948090wjc.7.2014.01.15.11.52.57
        for <std-proposals@isocpp.org>
        (version=TLSv1 cipher=ECDHE-RSA-RC4-SHA bits=128/128);
        Wed, 15 Jan 2014 11:52:57 -0800 (PST)
Received-SPF: pass (google.com: domain of nliber@gmail.com designates 2a00:1450:400c:c03::22a as permitted sender) client-ip=2a00:1450:400c:c03::22a;
Original-Received: by mail-we0-f170.google.com with SMTP id u57so2290357wes.29
        for <std-proposals@isocpp.org>; Wed, 15 Jan 2014 11:52:57 -0800 (PST)
X-Received: by 10.180.221.38 with SMTP id qb6mr4133732wic.26.1389815577545;
 Wed, 15 Jan 2014 11:52:57 -0800 (PST)
Original-Sender: nliber@gmail.com
Original-Received: by 10.194.121.163 with HTTP; Wed, 15 Jan 2014 11:52:17 -0800 (PST)
In-Reply-To: <2685690.E3vksNc10o@tjmaciei-mobl2>
X-Original-Sender: nevin@eviloverlord.com
X-Original-Authentication-Results: mx.google.com;       spf=pass (google.com:
 domain of nliber@gmail.com designates 2a00:1450:400c:c03::22a as permitted
 sender) smtp.mail=nliber@gmail.com;       dkim=pass header.i=@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:8616
Archived-At: <http://permalink.gmane.org/gmane.comp.lang.c++.isocpp.proposals/8616>

--001a1134d2dacd940c04f007a7f4
Content-Type: text/plain; charset=ISO-8859-1

On 15 January 2014 13:45, Thiago Macieira <thiago@macieira.org> wrote:

>
> The null option comes in handy when you need to distinguish a field that
> might
> be present but empty from a field that isn't present. QUrl makes use of
> that
> and the equivalent std::networking::uri proposal just uses
> std::optional<String> (String is a template).


That looks like a better solution to me.  null and empty are different
conceptually and should not be merged together.
-- 
 Nevin ":-)" Liber  <mailto:nevin@eviloverlord.com>  (847) 691-1404

-- 

--- 
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/.

--001a1134d2dacd940c04f007a7f4
Content-Type: text/html; charset=ISO-8859-1
Content-Transfer-Encoding: quoted-printable

<div dir=3D"ltr">On 15 January 2014 13:45, Thiago Macieira <span dir=3D"ltr=
">&lt;<a href=3D"mailto:thiago@macieira.org" target=3D"_blank">thiago@macie=
ira.org</a>&gt;</span> wrote:<br>
<div class=3D"gmail_extra"><div class=3D"gmail_quote"><blockquote class=3D"=
gmail_quote" style=3D"margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-=
left:1ex"><br>
The null option comes in handy when you need to distinguish a field that mi=
ght<br>
be present but empty from a field that isn&#39;t present. QUrl makes use of=
 that<br>
and the equivalent std::networking::uri proposal just uses<br>
std::optional&lt;String&gt; (String is a template).</blockquote><div><br></=
div><div>That looks like a better solution to me.=A0 null and empty are dif=
ferent conceptually and should not be merged together.<br></div></div>-- <b=
r>

=A0Nevin &quot;:-)&quot; Liber=A0 &lt;mailto:<a href=3D"mailto:nevin@evilov=
erlord.com" target=3D"_blank">nevin@eviloverlord.com</a>&gt;=A0 <a href=3D"=
tel:%28847%29%20691-1404" value=3D"+18476911404" target=3D"_blank">(847) 69=
1-1404</a>
</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 />

--001a1134d2dacd940c04f007a7f4--

.
