220 13413 <1c901f36-2346-41f2-81cd-d493cff45351@isocpp.org> article
Path: news.gmane.org!not-for-mail
From: Matheus Izvekov <mizvekov@gmail.com>
Newsgroups: gmane.comp.lang.c++.isocpp.proposals
Subject: Re: atof(string_view) and others
Date: Tue, 30 Sep 2014 19:26:42 -0700 (PDT)
Lines: 64
Approved: news@gmane.org
Message-ID: <1c901f36-2346-41f2-81cd-d493cff45351@isocpp.org>
References: <b5f9aa7f-9b14-4403-b7e7-ff1a80e9b25b@isocpp.org> <CAGg_6+Px3pS4xqKUffjEw28Q4spdhAXUg5HXAU+kSv+O9CVMZQ@mail.gmail.com>
 <2118839.fukHYmiT6S@tjmaciei-mobl4>
 <77247918-fbe5-418d-ab30-8b4b852dace9@isocpp.org>
Reply-To: std-proposals@isocpp.org
NNTP-Posting-Host: plane.gmane.org
Mime-Version: 1.0
Content-Type: multipart/alternative; 
	boundary="----=_Part_4725_639648995.1412130402467"
X-Trace: ger.gmane.org 1412130413 1455 80.91.229.3 (1 Oct 2014 02:26:53 GMT)
X-Complaints-To: usenet@ger.gmane.org
NNTP-Posting-Date: Wed, 1 Oct 2014 02:26:53 +0000 (UTC)
To: std-proposals@isocpp.org
Original-X-From: std-proposals+bncBCOKZ27XTMNRBY6MVWQQKGQE6FRBJQI@isocpp.org Wed Oct 01 04:26:47 2014
Return-path: <std-proposals+bncBCOKZ27XTMNRBY6MVWQQKGQE6FRBJQI@isocpp.org>
Envelope-to: gclcip-std-proposals@m.gmane.org
Original-Received: from mail-ie0-f199.google.com ([209.85.223.199])
	by plane.gmane.org with esmtp (Exim 4.69)
	(envelope-from <std-proposals+bncBCOKZ27XTMNRBY6MVWQQKGQE6FRBJQI@isocpp.org>)
	id 1XZ9cq-0003C9-Qg
	for gclcip-std-proposals@m.gmane.org; Wed, 01 Oct 2014 04:26:45 +0200
Original-Received: by mail-ie0-f199.google.com with SMTP id y20sf1103547ier.10
        for <gclcip-std-proposals@m.gmane.org>; Tue, 30 Sep 2014 19:26:43 -0700 (PDT)
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed;
        d=gmail.com; s=20120113;
        h=date:from:to:message-id:in-reply-to:references:subject:mime-version
         :x-original-sender:reply-to:precedence:mailing-list:list-id
         :list-post:list-help:list-archive:list-subscribe:list-unsubscribe
         :content-type;
        bh=WmYjIBeGyhXp7u31z2yIxBWBijhksAADxzZD0npqHnE=;
        b=EuJ1Kiydz9JzlZCDB4DO1aid5gxjgX8LftjcuFghTiYNXHrQhMUq1vHA3AAuiKvBYU
         3+zRLCeVJ+edS6OtXNQ4O1IofAAi5DGXhPokf3CT+KYmfrqbqqhdhrKlykjE8RgPjIUV
         uXXecmvUZmWrFq2pw1bdZTXNbZ06xWC49K8ab/w009UsSl+fgiuiYEzlUoTxAE2sAIdz
         lRbxvbgDIPLYr/8Lck8TLqPQc6dT9FkNY2nTgoA3xvn6p57gqse3zlTsJVLD9rkDsRUl
         RaQxw6AXmvtQ9LZtSStwmczsnOd7EagslKLeFKvYAFD21mJ27va3dCH4SclTA7srKutu
         RPJw==
X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed;
        d=1e100.net; s=20130820;
        h=x-gm-message-state:date:from:to:message-id:in-reply-to:references
         :subject:mime-version:x-original-sender:reply-to:precedence
         :mailing-list:list-id:list-post:list-help:list-archive
         :list-subscribe:list-unsubscribe:content-type;
        bh=WmYjIBeGyhXp7u31z2yIxBWBijhksAADxzZD0npqHnE=;
        b=OfeLaR32E79cukfq7XQutheXq0xmoCGwgHc9E9S8Ke0qjUjV6Vb1Gm+oN/IxGZalU+
         oIzjR5BhxsXZ473NxBwGE3Y4Tr7QjByVAWCp7vRSaFx57R/6uzlXbo3qWxWXF9Fg0ubF
         gnadXMD+rGFWs5CLUQngV6TfpGhYQvNAh1pA2soH5QYSZwP9LqfWPQKzogQ6/PVqtmMS
         6/rx5OunK/Qv3guj9IJuP0njYXLXilI16fVlvud8vTtfXAcrBsZ2BtQGw4eZXeFdqFzQ
         2Z+mI/y/hJN44BbBJ4awwmR4Grt1pV2PinhLaX2Ad7zOGnQhtUK/yjcP4cgRjbHQcqL1
         tcXA==
X-Gm-Message-State: ALoCoQlgjDbFAZ0BZsWkxyKAspTlLE5Zowib87ZDxG8U8XqyYmPeX4RPmd70a0sUUxO4qR5CjQW+
X-Received: by 10.182.199.4 with SMTP id jg4mr43410196obc.43.1412130403907;
        Tue, 30 Sep 2014 19:26:43 -0700 (PDT)
X-BeenThere: std-proposals@isocpp.org
Original-Received: by 10.140.48.131 with SMTP id o3ls319250qga.28.gmail; Tue, 30 Sep
 2014 19:26:43 -0700 (PDT)
X-Received: by 10.140.39.39 with SMTP id u36mr35873qgu.8.1412130403288;
        Tue, 30 Sep 2014 19:26:43 -0700 (PDT)
In-Reply-To: <77247918-fbe5-418d-ab30-8b4b852dace9@isocpp.org>
X-Original-Sender: mizvekov@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>, <mailto:std-proposals@isocpp.org>
List-Help: <http://support.google.com/a/isocpp.org/bin/topic.py?topic=25838>, <mailto:std-proposals+help@isocpp.org>
List-Archive: <http://groups.google.com/a/isocpp.org/group/std-proposals/>
List-Subscribe: <http://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>,
 <http://groups.google.com/a/isocpp.org/group/std-proposals/subscribe>
Xref: news.gmane.org gmane.comp.lang.c++.isocpp.proposals:13413
Archived-At: <http://permalink.gmane.org/gmane.comp.lang.c++.isocpp.proposals/13413>

------=_Part_4725_639648995.1412130402467
Content-Type: text/plain; charset=UTF-8

On Tuesday, September 30, 2014 11:13:40 PM UTC-3, Matthew Fioravante wrote:
>
> I have a few issues with optional:
>
>    1. You lose the ability to check specific error conditions like 
>    ERANGE. I'm not sure how useful this is as I've never done an ERANGE check 
>    on a number parse but that functionality is available with the legacy 
>    functions.
>    2. If you want to enable a throwing interface by just calling 
>    optional::value() and letting it throw on error, you'll be throwing a 
>    std::bad_optional_access. It would be better to throw an exception class 
>    which is more specifically related to parsing numbers and has information 
>    on what went wrong. 
>
> You can use expected instead of optional, if that gets accepted.

-- 

--- 
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.
Visit this group at http://groups.google.com/a/isocpp.org/group/std-proposals/.

------=_Part_4725_639648995.1412130402467
Content-Type: text/html; charset=UTF-8
Content-Transfer-Encoding: quoted-printable

<div dir=3D"ltr">On Tuesday, September 30, 2014 11:13:40 PM UTC-3, Matthew =
Fioravante wrote:<blockquote class=3D"gmail_quote" style=3D"margin: 0;margi=
n-left: 0.8ex;border-left: 1px #ccc solid;padding-left: 1ex;"><div dir=3D"l=
tr"><div>I have a few issues with optional:</div><div><ol><li><span style=
=3D"font-size:13px">You lose the ability to check specific error conditions=
 like ERANGE. I'm not sure how useful this is as I've never done an ERANGE =
check on a number parse but that functionality is available with the legacy=
 functions.</span><br></li><li><span style=3D"font-size:13px">If you want t=
o enable a throwing interface by just calling optional::value() and letting=
 it throw on error, you'll be throwing a std::bad_optional_access. It would=
 be better to throw an exception class which is more specifically related t=
o parsing numbers and has information on what went wrong.&nbsp;</span></li>=
</ol></div></div></blockquote><div>You can use expected instead of optional=
, if that gets accepted.<br></div></div>

<p></p>

-- <br />
<br />
--- <br />
You received this message because you are subscribed to the Google Groups &=
quot;ISO C++ Standard - Future Proposals&quot; group.<br />
To unsubscribe from this group and stop receiving emails from it, send an e=
mail to <a href=3D"mailto:std-proposals+unsubscribe@isocpp.org">std-proposa=
ls+unsubscribe@isocpp.org</a>.<br />
To post to this group, send email to <a href=3D"mailto:std-proposals@isocpp=
..org">std-proposals@isocpp.org</a>.<br />
Visit this group at <a href=3D"http://groups.google.com/a/isocpp.org/group/=
std-proposals/">http://groups.google.com/a/isocpp.org/group/std-proposals/<=
/a>.<br />

------=_Part_4725_639648995.1412130402467--

.
