220 18081 <0bb1cbcf-57bf-40c0-b91e-c1e52ad91fc6@isocpp.org> article
Path: news.gmane.org!not-for-mail
From: Matthew Fioravante <fmatthew5876@gmail.com>
Newsgroups: gmane.comp.lang.c++.isocpp.proposals
Subject: Re: Parsing Numbers
Date: Wed, 20 May 2015 16:04:00 -0700 (PDT)
Lines: 118
Approved: news@gmane.org
Message-ID: <0bb1cbcf-57bf-40c0-b91e-c1e52ad91fc6@isocpp.org>
References: <eb5c19d6-074f-4ee4-8e2d-6d92349eb4be@isocpp.org>
 <555CDDEF.8000002@gmx.net> <CAA7U3HMbniu0_RE2ptbwXzUrP9qRxQ_NG7=fBxytyobJ-X+=Sw@mail.gmail.com>
 <555CEC78.1000208@gmail.com>
 <CANh-dXkOqDAH+1u4-phZuev-SKE3KaUzt-U955_S8mm-BHms7w@mail.gmail.com>
Reply-To: std-proposals@isocpp.org
NNTP-Posting-Host: plane.gmane.org
Mime-Version: 1.0
Content-Type: multipart/mixed; 
	boundary="----=_Part_4341_1967694562.1432163040682"
X-Trace: ger.gmane.org 1432163045 29649 80.91.229.3 (20 May 2015 23:04:05 GMT)
X-Complaints-To: usenet@ger.gmane.org
NNTP-Posting-Date: Wed, 20 May 2015 23:04:05 +0000 (UTC)
To: std-proposals@isocpp.org
Original-X-From: std-proposals+bncBDELF54RTIGRBYNF6SVAKGQEYB5UQYY@isocpp.org Thu May 21 01:04:05 2015
Return-path: <std-proposals+bncBDELF54RTIGRBYNF6SVAKGQEYB5UQYY@isocpp.org>
Envelope-to: gclcip-std-proposals@m.gmane.org
Original-Received: from mail-yk0-f200.google.com ([209.85.160.200])
	by plane.gmane.org with esmtp (Exim 4.69)
	(envelope-from <std-proposals+bncBDELF54RTIGRBYNF6SVAKGQEYB5UQYY@isocpp.org>)
	id 1YvD1u-0006dv-Lt
	for gclcip-std-proposals@m.gmane.org; Thu, 21 May 2015 01:04:02 +0200
Original-Received: by ykft189 with SMTP id t189sf49399274ykf.0
        for <gclcip-std-proposals@m.gmane.org>; Wed, 20 May 2015 16:04:01 -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
         :content-type:x-original-sender:reply-to:precedence:mailing-list
         :list-id:list-post:list-help:list-archive:list-subscribe
         :list-unsubscribe;
        bh=3861dbVp2Z1SNqltPI0/2RyULLa6GUwuZ18CqDoF0DU=;
        b=fAvbfKKMNvlcQm7orhBmXBH/Uk2zLCNbsozl23PAJ3Xmr7BVNdL3D3mp0KKh9GD6Ji
         zH/F1N+O/TKA3YJ7cRAA+WUFxhUL9Um2QT6xKMRWCWYokHA7E28DM8XoCg6G6LbHQU/C
         fgTDHeP66/ra9myqtLUsgzwc7z6MQDw9RXicBI8nBtMuwCiyZBysdpDPh+IlEqG/Wx2l
         H1Ukgez1qjQx3sfEGHMFVwCSUkZkAYhxH37lUO7HxH1dHk5//4xRmPgvW5MRza9shCMG
         jwWRV2qfCHqUkf/VLow0J7W3gXcSOW/ewEqxx+hX0p4yiDsW2OGK4yvGZiZt6pcRdXR/
         I50w==
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:content-type:x-original-sender:reply-to
         :precedence:mailing-list:list-id:list-post:list-help:list-archive
         :list-subscribe:list-unsubscribe;
        bh=3861dbVp2Z1SNqltPI0/2RyULLa6GUwuZ18CqDoF0DU=;
        b=MU/DXIbhMgnRJwI69lrmgHZwiC7ucgvdDUW1IN6z91CYMrZ0siTQxGBVe8Tm1FcFG5
         IFi6C7DY0Bc2VLq909jFCCvhv1vaw35Ds/Cl5XUIxHj4NdnDFlbYQ7BCsOwLtTO0VzUL
         EPTe/W0gvisRaeCQx1CvPuQ0J8Qf1mZCb7UQhCk/xYXi2BW18NmZGjAlvsazj2oNjDac
         zeSUAwQI5m/ZYc1rdkY/Nlh1BGcaD/xl5VSoIOsFwM1kf4jLZ0fjLKFElwHL9nFyFR2a
         cYVSpvnpzEeJLucBoof3Bu9g72SPFhKiGDlhsHZXTKt7hkyEAComASuw5raRa0OQ+Tq5
         xYQQ==
X-Gm-Message-State: ALoCoQmbz+qB36c5lI6MvhMLrmzotOCIJ0vonuUK/FhVQTt+x7HEB/cTFfXcEhsbaxNmdlbeXi0U
X-Received: by 10.236.29.51 with SMTP id h39mr50568379yha.12.1432163041920;
        Wed, 20 May 2015 16:04:01 -0700 (PDT)
X-BeenThere: std-proposals@isocpp.org
Original-Received: by 10.140.108.7 with SMTP id i7ls1158122qgf.62.gmail; Wed, 20 May
 2015 16:04:01 -0700 (PDT)
X-Received: by 10.140.81.144 with SMTP id f16mr367753qgd.9.1432163041399;
        Wed, 20 May 2015 16:04:01 -0700 (PDT)
In-Reply-To: <CANh-dXkOqDAH+1u4-phZuev-SKE3KaUzt-U955_S8mm-BHms7w@mail.gmail.com>
X-Original-Sender: fmatthew5876@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:18081
Archived-At: <http://permalink.gmane.org/gmane.comp.lang.c++.isocpp.proposals/18081>

------=_Part_4341_1967694562.1432163040682
Content-Type: multipart/alternative; 
	boundary="----=_Part_4342_916581008.1432163040691"

------=_Part_4342_916581008.1432163040691
Content-Type: text/plain; charset=UTF-8



On Wednesday, May 20, 2015 at 6:55:11 PM UTC-4, Matthew Woehlke wrote:
>
> On 2015-05-20 14:28, Matthew Fioravante wrote: 
> > On Wednesday, May 20, 2015 at 12:29:51 PM UTC-4, Vicente J. Botet 
> Escriba 
> > wrote: 
> > 
> >> Not yet there, but I would find quire readable to assign multiple 
> values 
> >> and even declare them in situ as well 
> >> 
> >> {auto a, str} = parse<int>(str); 
> >> 
> >> {auto c, ignore} = parse<int>(str); 
> > 
> > Its quite a different proposal, but I think a syntax like this is badly 
> > needed. 
>
> Agreed. Unfortunately it came up before and IIRC did not get very far. 
>
> Nit: I think it would be good to allow a declaration 'void' (that is, no 
> name) to ignore a value. Example: 
>
>   [auto result, void] = parse<int>(str); 
>

+1 must better than std::ignore.

But we are off topic! :) 

On Wednesday, May 20, 2015 at 7:00:03 PM UTC-4, Jeffrey Yasskin wrote:
>
> There's a significant risk here that if the proposal is too 
> complicated, nothing will get accepted. 
>
> That's my biggest fear as well, and also the reason why the last 2 threads 
about this died with no action. Even if the standard version is pretty 
simple its very easy to write your favorite flavor of wrapper ontop of it.

-- 

--- 
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_4342_916581008.1432163040691
Content-Type: text/html; charset=UTF-8
Content-Transfer-Encoding: quoted-printable

<div dir=3D"ltr"><br><br>On Wednesday, May 20, 2015 at 6:55:11 PM UTC-4, Ma=
tthew Woehlke wrote:<blockquote class=3D"gmail_quote" style=3D"margin: 0;ma=
rgin-left: 0.8ex;border-left: 1px #ccc solid;padding-left: 1ex;">On 2015-05=
-20 14:28, Matthew Fioravante wrote:
<br>&gt; On Wednesday, May 20, 2015 at 12:29:51 PM UTC-4, Vicente J. Botet =
Escriba=20
<br>&gt; wrote:
<br>&gt;=20
<br>&gt;&gt; Not yet there, but I would find quire readable to assign multi=
ple values=20
<br>&gt;&gt; and even declare them in situ as well
<br>&gt;&gt;
<br>&gt;&gt; {auto a, str} =3D parse&lt;int&gt;(str);=20
<br>&gt;&gt;
<br>&gt;&gt; {auto c, ignore} =3D parse&lt;int&gt;(str);
<br>&gt;
<br>&gt; Its quite a different proposal, but I think a syntax like this is =
badly=20
<br>&gt; needed.
<br>
<br>Agreed. Unfortunately it came up before and IIRC did not get very far.
<br>
<br>Nit: I think it would be good to allow a declaration 'void' (that is, n=
o
<br>name) to ignore a value. Example:
<br>
<br>&nbsp; [auto result, void] =3D parse&lt;int&gt;(str);
<br></blockquote><div><br>+1 must better than std::ignore.<br><br>But we ar=
e off topic! :) <br></div><br>On Wednesday, May 20, 2015 at 7:00:03 PM UTC-=
4, Jeffrey Yasskin wrote:<blockquote class=3D"gmail_quote" style=3D"margin:=
 0;margin-left: 0.8ex;border-left: 1px #ccc solid;padding-left: 1ex;">There=
's a significant risk here that if the proposal is too
<br>complicated, nothing will get accepted.
<br>
<br></blockquote><div>That's my biggest fear as well, and also the reason w=
hy the last 2 threads about this died with no action. Even if the standard =
version is pretty simple its very easy to write your favorite flavor of wra=
pper ontop of it.<br><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_4342_916581008.1432163040691--
------=_Part_4341_1967694562.1432163040682--

.
