220 2125 <CAGsORuB-Qkx-LaXj2jO4yLrwN524kiJONSg7oczkQZHYaJ6ASg@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 07:52:22 -0600
Lines: 38
Approved: news@gmane.org
Message-ID: <CAGsORuB-Qkx-LaXj2jO4yLrwN524kiJONSg7oczkQZHYaJ6ASg@mail.gmail.com>
References: <CAGsORuC1ADLXgS9AZZiTo=knmhT-+9Yj+82v+b8Nq_WJpb1fOg@mail.gmail.com>
	<CAFk2RUZyZA0LLUNuVNcnibv+qBF69jMytWQL3tkp-Kp21oEU+A@mail.gmail.com>
Reply-To: std-proposals@isocpp.org
NNTP-Posting-Host: plane.gmane.org
Mime-Version: 1.0
Content-Type: text/plain; charset=ISO-8859-1
X-Trace: ger.gmane.org 1359035543 2176 80.91.229.3 (24 Jan 2013 13:52:23 GMT)
X-Complaints-To: usenet@ger.gmane.org
NNTP-Posting-Date: Thu, 24 Jan 2013 13:52:23 +0000 (UTC)
To: std-proposals@isocpp.org
Original-X-From: std-proposals+bncBCUILMGRQMARBF7ZQSEAKGQEZSJYZ5Y@isocpp.org Thu Jan 24 14:52:41 2013
Return-path: <std-proposals+bncBCUILMGRQMARBF7ZQSEAKGQEZSJYZ5Y@isocpp.org>
Envelope-to: gclcip-std-proposals@m.gmane.org
Original-Received: from mail-wg0-f71.google.com ([74.125.82.71])
	by plane.gmane.org with esmtp (Exim 4.69)
	(envelope-from <std-proposals+bncBCUILMGRQMARBF7ZQSEAKGQEZSJYZ5Y@isocpp.org>)
	id 1TyNEP-00073N-C7
	for gclcip-std-proposals@m.gmane.org; Thu, 24 Jan 2013 14:52:41 +0100
Original-Received: by mail-wg0-f71.google.com with SMTP id dr13sf326366wgb.10
        for <gclcip-std-proposals@m.gmane.org>; Thu, 24 Jan 2013 05:52:24 -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;
        bh=hrsAZ6Hzq/0+6XerB9RhzhPP1vU6bCkGXJBHcQZEekw=;
        b=pM/+LeEEsSDuUigq2FwqcLVkIhhW4nzrSMLoL//oi6WrzqLvmC6awHG685Hn1BO+yQ
         O7WIW0YGu9IcjiEZOesutq9tZ4VRPm44WfiRX5VbS9W6PhSizS956WdhWqmlm2I7QAW8
         6a7IUueWIUAenZyvhAMUZg1QFBu3f6W+3uiAeUxRRut2+caVw6cZ+KITO7Ro+DQjsAQG
         NHOn5+gPn6uYkbffxacnN2kDMcZrsjaJe7dFe8pPWCWQkwv/wOi+8rZO1EsBc9JbAkqj
         QuUkKsEOoUpecPIiP45BHKosg6u0HQkvA2atvDo49u/M3vL/c 
X-Received: by 10.152.144.135 with SMTP id sm7mr641149lab.3.1359035543934;
        Thu, 24 Jan 2013 05:52:23 -0800 (PST)
X-BeenThere: std-proposals@isocpp.org
Original-Received: by 10.152.111.103 with SMTP id ih7ls34747lab.21.gmail; Thu, 24 Jan
 2013 05:52:22 -0800 (PST)
X-Received: by 10.152.133.52 with SMTP id oz20mr1963983lab.30.1359035542775;
        Thu, 24 Jan 2013 05:52:22 -0800 (PST)
X-Received: by 10.152.133.52 with SMTP id oz20mr1963982lab.30.1359035542753;
        Thu, 24 Jan 2013 05:52:22 -0800 (PST)
Original-Received: from mail-lb0-f172.google.com (mail-lb0-f172.google.com [209.85.217.172])
        by mx.google.com with ESMTPS id ou8si11694537lab.122.2013.01.24.05.52.22
        (version=TLSv1 cipher=ECDHE-RSA-RC4-SHA bits=128/128);
        Thu, 24 Jan 2013 05:52:22 -0800 (PST)
Received-SPF: pass (google.com: domain of lichray@gmail.com designates 209.85.217.172 as permitted sender) client-ip=209.85.217.172;
Original-Received: by mail-lb0-f172.google.com with SMTP id n8so5391163lbj.3
        for <std-proposals@isocpp.org>; Thu, 24 Jan 2013 05:52:22 -0800 (PST)
X-Received: by 10.152.105.17 with SMTP id gi17mr1903488lab.46.1359035542570;
 Thu, 24 Jan 2013 05:52:22 -0800 (PST)
Original-Received: by 10.112.75.131 with HTTP; Thu, 24 Jan 2013 05:52:22 -0800 (PST)
In-Reply-To: <CAFk2RUZyZA0LLUNuVNcnibv+qBF69jMytWQL3tkp-Kp21oEU+A@mail.gmail.com>
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.172 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:2125
Archived-At: <http://permalink.gmane.org/gmane.comp.lang.c++.isocpp.proposals/2125>

On Thu, Jan 24, 2013 at 7:38 AM, Ville Voutilainen
<ville.voutilainen@gmail.com> wrote:
> I have since cured that problem in my head, there's no 'danger' involved in
> it.

The danger already shows up.

Quoting from the proposal:

  "Such implicit conversions impose some risk of introducing bugs,
   and in fact in order to avoid one such possible bug we had to 'poison'
   comparisons between optional<T> and T."

And a carefully specified comparison logic is under discussion.

> boost::optional has such implicit conversions, and I see no reason
> to do it differently for std::optional.

This is convincible to some (or many) people, but not me.
Not all Boost practices are good.  They are not good just because
they exists for several years.

--
Zhihao Yuan, ID lichray
The best way to predict the future is to invent it.
___________________________________________________
4BSD -- http://4bsd.biz/

-- 

--- 
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@isocpp.org.
Visit this group at http://groups.google.com/a/isocpp.org/group/std-proposals/?hl=en.



.
