220 2372 <CAFk2RUbKb6SF3EEC=QwfrN8-Mc=65_4oncAPpUqw=s810YutkA@mail.gmail.com> article
Path: news.gmane.org!not-for-mail
From: Ville Voutilainen <ville.voutilainen@gmail.com>
Newsgroups: gmane.comp.lang.c++.isocpp.proposals
Subject: Re: optional<T>, one more value or two states
Date: Mon, 28 Jan 2013 00:16:55 +0200
Lines: 25
Approved: news@gmane.org
Message-ID: <CAFk2RUbKb6SF3EEC=QwfrN8-Mc=65_4oncAPpUqw=s810YutkA@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>
	<d360a952-28ae-4d57-bb20-96fd08725a0b@isocpp.org>
	<CAPXezF_JggyMaXjGS9r1EAGVu1NhQBEyGEXB8tKmVqgFfjoCeg@mail.gmail.com>
	<CALJmx62zJd_tZ=XYL7TaSkRN6432SObwH9YS87eLX-h_pMuFYQ@mail.gmail.com>
	<CAOHCbivAK0ypmMhrhJ3zKpF8BHu3h_rUNzeao-HnibJkC-qqGw@mail.gmail.com>
	<ef15483d-5665-4da3-9b79-aefd3c725e1b@isocpp.org>
	<CAOHCbithEUfm+w_06V71=hpkqGUJvqiyDFqD7fesfgLy4uUieg@mail.gmail.com>
	<2c2b9360-8e5e-422d-9b85-124bd947b004@isocpp.org>
	<123b9f65-12fd-4285-bb6c-cfee383d4552@isocpp.org>
	<CAHOE3yeF6KBBz7a1uw58oA3Shh_w0HFGiLtUGEd4ntJAKBauew@mail.gmail.com>
	<CAA7U3HNDqV-j9wU0fw9kBwkoD6TiSmuZZhx1JCg3CNztYVMqqA@mail.gmail.com>
	<70537900-4796-40a3-80ed-dbe4b89cecdf@isocpp.org>
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 1359325016 21901 80.91.229.3 (27 Jan 2013 22:16:56 GMT)
X-Complaints-To: usenet@ger.gmane.org
NNTP-Posting-Date: Sun, 27 Jan 2013 22:16:56 +0000 (UTC)
To: std-proposals@isocpp.org
Original-X-From: std-proposals+bncBC5JHI7A7ALRBWGOS2EAKGQED7A2IRY@isocpp.org Sun Jan 27 23:17:16 2013
Return-path: <std-proposals+bncBC5JHI7A7ALRBWGOS2EAKGQED7A2IRY@isocpp.org>
Envelope-to: gclcip-std-proposals@m.gmane.org
Original-Received: from mail-ob0-f198.google.com ([209.85.214.198])
	by plane.gmane.org with esmtp (Exim 4.69)
	(envelope-from <std-proposals+bncBC5JHI7A7ALRBWGOS2EAKGQED7A2IRY@isocpp.org>)
	id 1TzaXL-0005Eu-3s
	for gclcip-std-proposals@m.gmane.org; Sun, 27 Jan 2013 23:17:15 +0100
Original-Received: by mail-ob0-f198.google.com with SMTP id dn14sf12871546obc.9
        for <gclcip-std-proposals@m.gmane.org>; Sun, 27 Jan 2013 14:16:56 -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=WaaSkdMgblIW87NxzZJqKBXDerzhRe007vGS8aavAxc=;
        b=AaqAaLKgpN3cfgNcIDjAf3q3uK9UWJKfuv92JTvZHJCfVVMmGb5DkfzTakEXyDBtsR
         BQEBfbFS8gOkIKgGa7jQ8N4mbro6uxbOG40ZQTJyKJ13PgxiYcTNCHtQm9PkhlK8Lqq7
         bCM9Sm4EsJmu6DK8YuqQyL7PFx4Un4Dst97pY9sb+Hr/sAUnIyybXMVkEB+3SePo34Dv
         FV5rSG72MJHtAOQElsQwZZQKL7+LqSW8o0CEGlTJNLxKlEx+0MxBI7mlYcOFKFrer6zO
         DWvn/xLMj0YcVUVCxGFDOT68IICT8DsWf+RxZwSnI3Sthok0a 
X-Received: by 10.182.121.35 with SMTP id lh3mr1957307obb.29.1359325016702;
        Sun, 27 Jan 2013 14:16:56 -0800 (PST)
X-BeenThere: std-proposals@isocpp.org
Original-Received: by 10.182.69.1 with SMTP id a1ls179895obu.9.gmail; Sun, 27 Jan 2013
 14:16:56 -0800 (PST)
X-Received: by 10.60.4.35 with SMTP id h3mr9894997oeh.123.1359325016190;
        Sun, 27 Jan 2013 14:16:56 -0800 (PST)
X-Received: by 10.60.4.35 with SMTP id h3mr9894995oeh.123.1359325016170;
        Sun, 27 Jan 2013 14:16:56 -0800 (PST)
Original-Received: from mail-oa0-f53.google.com (mail-oa0-f53.google.com [209.85.219.53])
        by mx.google.com with ESMTPS id ih6si7949580obb.127.2013.01.27.14.16.56
        (version=TLSv1 cipher=ECDHE-RSA-RC4-SHA bits=128/128);
        Sun, 27 Jan 2013 14:16:56 -0800 (PST)
Received-SPF: pass (google.com: domain of ville.voutilainen@gmail.com designates 209.85.219.53 as permitted sender) client-ip=209.85.219.53;
Original-Received: by mail-oa0-f53.google.com with SMTP id l20so2159011oag.40
        for <std-proposals@isocpp.org>; Sun, 27 Jan 2013 14:16:56 -0800 (PST)
X-Received: by 10.60.172.200 with SMTP id be8mr10064950oec.0.1359325016030;
 Sun, 27 Jan 2013 14:16:56 -0800 (PST)
Original-Received: by 10.76.108.82 with HTTP; Sun, 27 Jan 2013 14:16:55 -0800 (PST)
In-Reply-To: <70537900-4796-40a3-80ed-dbe4b89cecdf@isocpp.org>
X-Original-Sender: ville.voutilainen@gmail.com
X-Original-Authentication-Results: mx.google.com;       spf=pass (google.com:
 domain of ville.voutilainen@gmail.com designates 209.85.219.53 as permitted
 sender) smtp.mail=ville.voutilainen@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:2372
Archived-At: <http://permalink.gmane.org/gmane.comp.lang.c++.isocpp.proposals/2372>

On 27 January 2013 23:48, Nicol Bolas <jmckesson@gmail.com> wrote:
> It's not a "problem" with the constructor. The constructor is doing exactly
> what it is supposed to. The problem is with the expectation that
> pointer-like things have reference semantics.
> Optional is neither a container nor a pointer. It is its own type of thing,
> and it should have whatever is appropriate for users of that type. We don't
> want it to look too much like a pointer, lest users get the wrong idea. And
> we don't want it to look too much like a container, for the same reason.

I get no wrong ideas about optional or value_ptr or shared_ptr or unique_ptr,
despite their having operator*. I don't expect them to have pure reference
semantics. I have used various kinds of pointers as a substitute for having
a real optional, so in that sense I have no problem with optional being
somewhat pointer-like either.

-- 

--- 
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.



.
