220 30459 <58750288.5080004@gmail.com> article
Path: news.gmane.org!.POSTED!not-for-mail
From: Matthew Woehlke <mwoehlke.floss@gmail.com>
Newsgroups: gmane.comp.lang.c++.isocpp.proposals
Subject: Re: enum_cast proposal
Date: Tue, 10 Jan 2017 10:49:28 -0500
Lines: 19
Approved: news@gmane.org
Message-ID: <58750288.5080004@gmail.com>
References: <efdf2357-00a6-408a-8772-12f99135a880@isocpp.org>
 <57258435-5d82-48e7-8ed7-3c38682418fb@isocpp.org>
 <a35d9f20-9e4f-4789-b7e5-5cb08f99e6bd@isocpp.org>
Reply-To: std-proposals@isocpp.org
NNTP-Posting-Host: blaine.gmane.org
Mime-Version: 1.0
Content-Type: text/plain; charset=UTF-8
X-Trace: blaine.gmane.org 1484063396 17654 195.159.176.226 (10 Jan 2017 15:49:56 GMT)
X-Complaints-To: usenet@blaine.gmane.org
NNTP-Posting-Date: Tue, 10 Jan 2017 15:49:56 +0000 (UTC)
User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:38.0) Gecko/20100101
 Thunderbird/38.1.0
Cc: m.cencora@gmail.com, gmisocpp@gmail.com
To: std-proposals@isocpp.org
Original-X-From: std-proposals+bncBC37LBFWUIFBBDEF2TBQKGQEQIYHWFI@isocpp.org Tue Jan 10 16:49:52 2017
Return-path: <std-proposals+bncBC37LBFWUIFBBDEF2TBQKGQEQIYHWFI@isocpp.org>
Envelope-to: gclcip-std-proposals@m.gmane.org
Original-Received: from mail-pf0-f197.google.com ([209.85.192.197])
	by blaine.gmane.org with esmtp (Exim 4.84_2)
	(envelope-from <std-proposals+bncBC37LBFWUIFBBDEF2TBQKGQEQIYHWFI@isocpp.org>)
	id 1cQyfx-00024p-CV
	for gclcip-std-proposals@m.gmane.org; Tue, 10 Jan 2017 16:49:29 +0100
Original-Received: by mail-pf0-f197.google.com with SMTP id f144sf205350724pfa.3
        for <gclcip-std-proposals@m.gmane.org>; Tue, 10 Jan 2017 07:49:34 -0800 (PST)
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed;
        d=isocpp-org.20150623.gappssmtp.com; s=20150623;
        h=subject:to:references:cc:newsgroups:from:message-id:date:user-agent
         :mime-version:in-reply-to:x-original-sender
         :x-original-authentication-results:reply-to:precedence:mailing-list
         :list-id:x-spam-checked-in-group:list-post:list-help:list-archive
         :list-subscribe:list-unsubscribe;
        bh=616OSEumCVPojLzYbx5AN5wDllhZKhLQAMOHlWqsHHA=;
        b=A0yDULjaDGZLlVKoH+e75t9WVUwLq2bsbNfkQ2Eqku87B+fYx4NpxvKp92w7d7A6Ft
         1Ih9nO6vFIi4v/UP5zB81YAkz4nWw7fRD+3WcCUJvu7m+L8ZHGSyqP6zP+7UvTwWd7IA
         aLy8TewEoyqVMCjOhpxqT1cFRl0J71fL7uvXmKMwFYoCMCgQ5qzdzQc6/hJtiHjlXLaW
         jin3no2Bm7oEAIRpm3mdQA2lTZWtYhqDS0/R8YFQtYTY2PYRxr1QHGAEVKtVxljrkyWz
         dTOfn6A9TorIUyks2TyFcYDZzmJ0adrSRTKEn59avwWTM5onttZuTWpgItXY7imOKKIZ
         jPPQ==
X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed;
        d=1e100.net; s=20161025;
        h=x-gm-message-state:subject:to:references:cc:newsgroups:from
         :message-id:date:user-agent:mime-version:in-reply-to
         :x-original-sender:x-original-authentication-results:reply-to
         :precedence:mailing-list:list-id:x-spam-checked-in-group:list-post
         :list-help:list-archive:list-subscribe:list-unsubscribe;
        bh=616OSEumCVPojLzYbx5AN5wDllhZKhLQAMOHlWqsHHA=;
        b=R2AYqF4fwjuvwGquYPmr4/l29hwl30UUAiykGpEZje0JNu0wwF8z2dxqtI3itxAmut
         TrI8g1ffgeAmCTgn2d5ktkgLbNLbcqJhnvoCTa/RV8YY8tGx343bdDbZqqJuNWACsWz0
         9c9W0GszeuKODcEP7MUDPD982pO+jz5q8YtpY6iJXxWk2L+DCgRPQI562zP8Ng344oFF
         4MWC5vs2W30fjYzIQmVK3fwo+5iiDpz+gmdkWPyrM1znHhCoKOB8Q8VzWW6flPdOJ4Fr
         nn71EgtyGWvos2i3glfmmpiWEc1A3/ylXBuuB956E8tP9YcnTvOFpYgVRWkB5dq1d4me
         3Hpg 
X-Gm-Message-State: AIkVDXIHloSWKL/o4UN4LPECqL9yIzFu3Pn0DwYmWC5EEs4Bp24NyaylU//MGsVv7nKndQ==
X-Received: by 10.99.170.6 with SMTP id e6mr1162086pgf.7.1484063373687;
        Tue, 10 Jan 2017 07:49:33 -0800 (PST)
X-BeenThere: std-proposals@isocpp.org
Original-Received: by 10.36.120.146 with SMTP id p140ls570601itc.14.gmail; Tue, 10 Jan
 2017 07:49:32 -0800 (PST)
X-Received: by 10.36.28.204 with SMTP id c195mr563040itc.81.1484063372504;
        Tue, 10 Jan 2017 07:49:32 -0800 (PST)
Original-Received: from mail-it0-x22c.google.com (mail-it0-x22c.google.com. [2607:f8b0:4001:c0b::22c])
        by mx.google.com with ESMTPS id b82si2313836ioa.50.2017.01.10.07.49.32
        for <std-proposals@isocpp.org>
        (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128);
        Tue, 10 Jan 2017 07:49:32 -0800 (PST)
Received-SPF: pass (google.com: domain of mwoehlke.floss@gmail.com designates 2607:f8b0:4001:c0b::22c as permitted sender) client-ip=2607:f8b0:4001:c0b::22c;
Original-Received: by mail-it0-x22c.google.com with SMTP id r185so50877888ita.0
        for <std-proposals@isocpp.org>; Tue, 10 Jan 2017 07:49:32 -0800 (PST)
X-Received: by 10.36.67.199 with SMTP id s190mr596737itb.41.1484063372292;
        Tue, 10 Jan 2017 07:49:32 -0800 (PST)
Original-Received: from [192.168.1.173] (tripoint.kitware.com. [66.194.253.20])
        by smtp.googlemail.com with ESMTPSA id o191sm1452494iod.11.2017.01.10.07.49.31
        (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128);
        Tue, 10 Jan 2017 07:49:31 -0800 (PST)
Original-Newsgroups: gmane.comp.lang.c++.isocpp.proposals
In-Reply-To: <a35d9f20-9e4f-4789-b7e5-5cb08f99e6bd@isocpp.org>
X-Original-Sender: mwoehlke.floss@gmail.com
X-Original-Authentication-Results: mx.google.com;       dkim=pass
 header.i=@gmail.com;       spf=pass (google.com: domain of
 mwoehlke.floss@gmail.com designates 2607:f8b0:4001:c0b::22c as permitted
 sender) smtp.mailfrom=mwoehlke.floss@gmail.com;       dmarc=pass (p=NONE
 sp=NONE dis=NONE) header.from=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: <https://groups.google.com/a/isocpp.org/group/std-proposals/post>, <mailto:std-proposals@isocpp.org>
List-Help: <https://support.google.com/a/isocpp.org/bin/topic.py?topic=25838>, <mailto:std-proposals+help@isocpp.org>
List-Archive: <https://groups.google.com/a/isocpp.org/group/std-proposals/>
List-Subscribe: <https://groups.google.com/a/isocpp.org/group/std-proposals/subscribe>,
 <mailto:std-proposals+subscribe@isocpp.org>
List-Unsubscribe: <mailto:googlegroups-manage+399137483710+unsubscribe@googlegroups.com>,
 <https://groups.google.com/a/isocpp.org/group/std-proposals/subscribe>
Xref: news.gmane.org gmane.comp.lang.c++.isocpp.proposals:30459
Archived-At: <http://permalink.gmane.org/gmane.comp.lang.c++.isocpp.proposals/30459>

On 2017-01-10 10:31, m.cencora@gmail.com wrote:
> For sure baseline API must be exception-free.
> Do we really want to additionally support API that throws on error?

I *really* hope we can use something like std::expected; this is a
textbook use case for that, and makes it trivial to have a
throw-on-error API (just grab the value from the expected without
checking it first; this will turn around and throw if the value is not
there).

-- 
Matthew

-- 
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.
To view this discussion on the web visit https://groups.google.com/a/isocpp.org/d/msgid/std-proposals/58750288.5080004%40gmail.com.

.
