220 2446 <CAHOE3ycx4fk=7S0PNcJ0tJsf_pN6ER2YZbF+E8t9n-wvxAGtsQ@mail.gmail.com> article
Path: news.gmane.org!not-for-mail
From: Daniel James <dnljms@gmail.com>
Newsgroups: gmane.comp.lang.c++.isocpp.proposals
Subject: Re: optional<T>, one more value or two states
Date: Mon, 28 Jan 2013 20:27:06 +0000
Lines: 31
Approved: news@gmane.org
Message-ID: <CAHOE3ycx4fk=7S0PNcJ0tJsf_pN6ER2YZbF+E8t9n-wvxAGtsQ@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>
	<CAHOE3yfsCHFTgcgSt+ytzqx_V5GRWrbobO5hSrd8nDQZ2NC98A@mail.gmail.com>
	<CAA7U3HMOQm09UYKJWCQmo34=su7LKeQyYu=2_P401CXSEE0k0A@mail.gmail.com>
	<CAHOE3yd5zt91JmmeAZyLiXxQLUNGQqatX5JRRGGbZVMg-0ckEQ@mail.gmail.com>
	<CAA7U3HNSp1MNvPzcD=9ssb0KSvrutWW2=jHQJknz2FhV4+bcww@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 1359404825 27982 80.91.229.3 (28 Jan 2013 20:27:05 GMT)
X-Complaints-To: usenet@ger.gmane.org
NNTP-Posting-Date: Mon, 28 Jan 2013 20:27:05 +0000 (UTC)
To: std-proposals@isocpp.org
Original-X-From: std-proposals+bncBCGPB3VVUAGBBG56TOEAKGQEYXKYSFA@isocpp.org Mon Jan 28 21:27:25 2013
Return-path: <std-proposals+bncBCGPB3VVUAGBBG56TOEAKGQEYXKYSFA@isocpp.org>
Envelope-to: gclcip-std-proposals@m.gmane.org
Original-Received: from mail-we0-f198.google.com ([74.125.82.198])
	by plane.gmane.org with esmtp (Exim 4.69)
	(envelope-from <std-proposals+bncBCGPB3VVUAGBBG56TOEAKGQEYXKYSFA@isocpp.org>)
	id 1TzvIb-0007bA-Ff
	for gclcip-std-proposals@m.gmane.org; Mon, 28 Jan 2013 21:27:25 +0100
Original-Received: by mail-we0-f198.google.com with SMTP id k14sf2997221wer.5
        for <gclcip-std-proposals@m.gmane.org>; Mon, 28 Jan 2013 12:27:07 -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=Vs/kWgcxlyyA4gSOgKGrqxFYae+LnHBcJ82b+rLuRzs=;
        b=jSanfiZxSyJuKQw6g6+XEScXlVqEUwSco/1ZLbsyRs4LSOf0yqq2FIlptHV+4rgYw3
         zYbFAR30GMpz6+JLqai/qe3S3FgeWkV/Ctf7HJT7LwgIja4emzKAwLUw36kukE2jPIH5
         mTTEZpIn43yKHvBFfGI/tJ5/qQis3KSHx6sytOfj0O0HxKi2678SeXtUoDusztBIDcQQ
         jW5CnrSLLlC0Xtl9Mh73aUBY5GkxPWDLN1aZRUAsYkUUMAtn1N7ZXBd5clTPVMEtqwFb
         RodFFsvK+7HGGXpiKmrvtvHi/nJygSQ+6qjyV45oWW02sEXmu 
X-Received: by 10.180.82.1 with SMTP id e1mr2184551wiy.1.1359404827627;
        Mon, 28 Jan 2013 12:27:07 -0800 (PST)
X-BeenThere: std-proposals@isocpp.org
Original-Received: by 10.180.8.135 with SMTP id r7ls1036706wia.19.gmail; Mon, 28 Jan
 2013 12:27:07 -0800 (PST)
X-Received: by 10.194.78.236 with SMTP id e12mr23429537wjx.32.1359404827115;
        Mon, 28 Jan 2013 12:27:07 -0800 (PST)
X-Received: by 10.194.78.236 with SMTP id e12mr23429535wjx.32.1359404827099;
        Mon, 28 Jan 2013 12:27:07 -0800 (PST)
Original-Received: from mail-we0-x230.google.com ([2a00:1450:400c:c03::230])
        by mx.google.com with ESMTPS id le9si3788180wjb.200.2013.01.28.12.27.07
        (version=TLSv1 cipher=ECDHE-RSA-RC4-SHA bits=128/128);
        Mon, 28 Jan 2013 12:27:07 -0800 (PST)
Received-SPF: pass (google.com: domain of dnljms@gmail.com designates 2a00:1450:400c:c03::230 as permitted sender) client-ip=2a00:1450:400c:c03::230;
Original-Received: by mail-we0-f176.google.com with SMTP id s43so1719871wey.21
        for <std-proposals@isocpp.org>; Mon, 28 Jan 2013 12:27:07 -0800 (PST)
X-Received: by 10.180.92.36 with SMTP id cj4mr11920988wib.23.1359404826978;
 Mon, 28 Jan 2013 12:27:06 -0800 (PST)
Original-Received: by 10.194.46.7 with HTTP; Mon, 28 Jan 2013 12:27:06 -0800 (PST)
In-Reply-To: <CAA7U3HNSp1MNvPzcD=9ssb0KSvrutWW2=jHQJknz2FhV4+bcww@mail.gmail.com>
X-Original-Sender: dnljms@gmail.com
X-Original-Authentication-Results: mx.google.com;       spf=pass (google.com:
 domain of dnljms@gmail.com designates 2a00:1450:400c:c03::230 as permitted
 sender) smtp.mail=dnljms@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:2446
Archived-At: <http://permalink.gmane.org/gmane.comp.lang.c++.isocpp.proposals/2446>

On 28 January 2013 20:10, Olaf van der Spek <olafvdspek@gmail.com> wrote:
> On Mon, Jan 28, 2013 at 8:54 PM, Daniel James <dnljms@gmail.com> wrote:
>> On 28 January 2013 10:08, Olaf van der Spek <olafvdspek@gmail.com> wrote:
>>> On Mon, Jan 28, 2013 at 10:07 AM, Daniel James <dnljms@gmail.com> wrote:
>>>>
>>>> It depends on how well the range algorithms works out. They might
>>>> provide a more elegant way to manipulate optionals than if statements,
>>>> similar to how a range algorithm can be more elegant than a for loop.
>>>> This has worked out well in other languages, for example in Scala:
>>>
>>> Wouldn't this be better handled by a wrapper that allows optionals,
>>> (smart) pointers and references to be handled as ranges?
>>> Separation of concerns says this shouldn't be handled by optional itself.
>>
>> Fair enough. I find that such separation of concerns can end up with
>> unwieldy interfaces, but that's a matter of opinion.
>
> We can't add a range interface to raw pointers anyway, right?

I don't want to add a range interface to raw pointers.

-- 

--- 
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.



.
