220 2168 <CAGsORuDpCNO60JaS=mQhHg_wFMvpPWTMNz-JSGfiAineF8QWPg@mail.gmail.com> article
Path: news.gmane.org!not-for-mail
From: Zhihao Yuan <lichray@gmail.com>
Newsgroups: gmane.comp.lang.c++.isocpp.proposals
Subject: Re: optional<T>, one more value or two states
Date: Thu, 24 Jan 2013 13:41:15 -0600
Lines: 34
Approved: news@gmane.org
Message-ID: <CAGsORuDpCNO60JaS=mQhHg_wFMvpPWTMNz-JSGfiAineF8QWPg@mail.gmail.com>
References: <CAGsORuC1ADLXgS9AZZiTo=knmhT-+9Yj+82v+b8Nq_WJpb1fOg@mail.gmail.com>
	<CAFk2RUZyZA0LLUNuVNcnibv+qBF69jMytWQL3tkp-Kp21oEU+A@mail.gmail.com>
	<CAGsORuB-Qkx-LaXj2jO4yLrwN524kiJONSg7oczkQZHYaJ6ASg@mail.gmail.com>
	<51013FC6.9080907@bubblescope.net>
	<CAGsORuDaFt3tweHJGe+XeWLjoMnCUc+r8-3uLR9JJVFYOmW3BA@mail.gmail.com>
	<CANh-dXkCNy5iVk3D0NZxRw9DifzZwou2KFi+r374cBV5fFRXFQ@mail.gmail.com>
	<CAGsORuB4mQ-+xb3R79=kKEnoLfQgbY2ZRuD6A-a8V5+nndUWtw@mail.gmail.com>
	<CANh-dXnF6yCyYWwwA0DGbot5EBufUkQqoz8sy-hRqHN-JmGeiA@mail.gmail.com>
	<CAGsORuBVbM8gMvfvko7aJYX62eRh=Snoq1AU2L4GvfoGnZWeCg@mail.gmail.com>
	<CAGsORuDocQnk192nhjxQ9_9zAoRiw8KbCnREuu6LOuvHMjVQdw@mail.gmail.com>
	<73637060-56ab-476b-9822-9f70dd2bb714@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
Content-Transfer-Encoding: quoted-printable
X-Trace: ger.gmane.org 1359056477 5933 80.91.229.3 (24 Jan 2013 19:41:17 GMT)
X-Complaints-To: usenet@ger.gmane.org
NNTP-Posting-Date: Thu, 24 Jan 2013 19:41:17 +0000 (UTC)
To: std-proposals@isocpp.org
Original-X-From: std-proposals+bncBCUILMGRQMARBXE4Q2EAKGQEPSBKNSQ@isocpp.org Thu Jan 24 20:41:35 2013
Return-path: <std-proposals+bncBCUILMGRQMARBXE4Q2EAKGQEPSBKNSQ@isocpp.org>
Envelope-to: gclcip-std-proposals@m.gmane.org
Original-Received: from mail-wi0-f200.google.com ([209.85.212.200])
	by plane.gmane.org with esmtp (Exim 4.69)
	(envelope-from <std-proposals+bncBCUILMGRQMARBXE4Q2EAKGQEPSBKNSQ@isocpp.org>)
	id 1TySg1-0005xL-PL
	for gclcip-std-proposals@m.gmane.org; Thu, 24 Jan 2013 20:41:33 +0100
Original-Received: by mail-wi0-f200.google.com with SMTP id hn14sf1148413wib.7
        for <gclcip-std-proposals@m.gmane.org>; Thu, 24 Jan 2013 11:41:16 -0800 (PST)
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed;
        d=gmail.com; s=20120113;
        h=x-received:x-beenthere:x-received:x-received:received-spf
         :mime-version:x-received: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-google-group-id
         :list-post:list-help:list-archive:list-subscribe:list-unsubscribe
         :content-type:content-transfer-encoding;
        bh=/3MqHFvVqOT3SPEtMPG88rnA6GiDmrK2gFwkCF8lvus=;
        b=AV3gDJa2Gai+VY75MklZyrjueuCt7NtCAXHEruxLsQrTl4boviSDcLp/expdYHZiaQ
         0BwfAAu6uIv6wWok0h6Yz66gWntROT5S7NYMDyxiEMPjoGXbITDnKWt49zayTQzFYG1Z
         kJ9pIZIvFxmApOIOVT0FEaS+l91qtvM+REcrW2+iUm9yHojemgL+oA1iSO0RrDgRU+uM
         X2geBaQXLbu9vry5UhjtmHjakIvo0co7i6z5cw7uYLXTfwtJMckLqEPe9D9n8K+G7sB4
         gYObmUoXYGw+KB3qHV0mGnn 
X-Received: by 10.112.25.225 with SMTP id f1mr419087lbg.9.1359056476205;
        Thu, 24 Jan 2013 11:41:16 -0800 (PST)
X-BeenThere: std-proposals@isocpp.org
Original-Received: by 10.152.114.70 with SMTP id je6ls53822lab.54.gmail; Thu, 24 Jan
 2013 11:41:15 -0800 (PST)
X-Received: by 10.112.47.38 with SMTP id a6mr1256702lbn.93.1359056475757;
        Thu, 24 Jan 2013 11:41:15 -0800 (PST)
X-Received: by 10.112.47.38 with SMTP id a6mr1256701lbn.93.1359056475739;
        Thu, 24 Jan 2013 11:41:15 -0800 (PST)
Original-Received: from mail-lb0-f169.google.com (mail-lb0-f169.google.com [209.85.217.169])
        by mx.google.com with ESMTPS id jf9si12155477lab.51.2013.01.24.11.41.15
        (version=TLSv1 cipher=ECDHE-RSA-RC4-SHA bits=128/128);
        Thu, 24 Jan 2013 11:41:15 -0800 (PST)
Received-SPF: pass (google.com: domain of lichray@gmail.com designates 209.85.217.169 as permitted sender) client-ip=209.85.217.169;
Original-Received: by mail-lb0-f169.google.com with SMTP id m4so6627633lbo.28
        for <std-proposals@isocpp.org>; Thu, 24 Jan 2013 11:41:15 -0800 (PST)
X-Received: by 10.112.86.232 with SMTP id s8mr1239372lbz.86.1359056475521;
 Thu, 24 Jan 2013 11:41:15 -0800 (PST)
Original-Received: by 10.112.75.131 with HTTP; Thu, 24 Jan 2013 11:41:15 -0800 (PST)
In-Reply-To: <73637060-56ab-476b-9822-9f70dd2bb714@isocpp.org>
X-Original-Sender: lichray@gmail.com
X-Original-Authentication-Results: mx.google.com;       spf=pass (google.com:
 domain of lichray@gmail.com designates 209.85.217.169 as permitted sender)
 smtp.mail=lichray@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?hl=en>,
 <mailto:std-proposals@isocpp.org>
List-Help: <http://support.google.com/a/isocpp.org/bin/topic.py?hl=en&topic=25838>,
 <mailto:std-proposals+help@isocpp.org>
List-Archive: <http://groups.google.com/a/isocpp.org/group/std-proposals/?hl=en>
List-Subscribe: <http://groups.google.com/a/isocpp.org/group/std-proposals/subscribe?hl=en>,
 <mailto:std-proposals+subscribe@isocpp.org>
List-Unsubscribe: <http://groups.google.com/a/isocpp.org/group/std-proposals/subscribe?hl=en>,
 <mailto:googlegroups-manage+399137483710+unsubscribe@googlegroups.com>
Xref: news.gmane.org gmane.comp.lang.c++.isocpp.proposals:2168
Archived-At: <http://permalink.gmane.org/gmane.comp.lang.c++.isocpp.proposals/2168>

On Thu, Jan 24, 2013 at 1:30 PM, Andrzej Krzemie=C5=84ski <akrzemi1@gmail.c=
om> wrote:
> i =3D=3D nullopt;

  j =3D=3D nullopt, I suppose?

> The design of boost::optional and now std::optional is to allow your opti=
on 1
> (nullopt is just one other value of T) wherever it is reasonably safe:

OK.  Although it less safe then a strong "Option type", it's safer than
null, undefined, etc., thanks to template.  I'd like to hear some good
news from the next meeting :)


--
Zhihao Yuan, ID lichray
The best way to predict the future is to invent it.
___________________________________________________
4BSD -- http://4bsd.biz/

--=20

---=20
You received this message because you are subscribed to the Google Groups "=
ISO C++ Standard - Future Proposals" group.
To post to this group, send email to std-proposals@isocpp.org.
To unsubscribe from this group, send email to std-proposals+unsubscribe@iso=
cpp.org.
Visit this group at http://groups.google.com/a/isocpp.org/group/std-proposa=
ls/?hl=3Den.



.
