220 19881 <ab64c760-eeca-426a-953f-99d7a19919f6@isocpp.org> article
Path: news.gmane.org!not-for-mail
From: Arthur Tchaikovsky <atch.cpp@gmail.com>
Newsgroups: gmane.comp.lang.c++.isocpp.proposals
Subject: Re: default arguments
Date: Tue, 18 Aug 2015 02:42:19 -0700 (PDT)
Lines: 140
Approved: news@gmane.org
Message-ID: <ab64c760-eeca-426a-953f-99d7a19919f6@isocpp.org>
References: <ef9c7cbe-e8f1-4196-83bc-11a1c9b2798c@isocpp.org>
 <CANu6V4UOxgZ9GV9f8DTbtW6BXrBPA7_2yUDRyhXv5BptvybHFA@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_84_713134243.1439890939278"
X-Trace: ger.gmane.org 1439890944 10058 80.91.229.3 (18 Aug 2015 09:42:24 GMT)
X-Complaints-To: usenet@ger.gmane.org
NNTP-Posting-Date: Tue, 18 Aug 2015 09:42:24 +0000 (UTC)
To: ISO C++ Standard - Future Proposals <std-proposals@isocpp.org>
Original-X-From: std-proposals+bncBDL6FI4NYYERB7H3ZOXAKGQE2MKKEOY@isocpp.org Tue Aug 18 11:42:23 2015
Return-path: <std-proposals+bncBDL6FI4NYYERB7H3ZOXAKGQE2MKKEOY@isocpp.org>
Envelope-to: gclcip-std-proposals@m.gmane.org
Original-Received: from mail-pd0-f197.google.com ([209.85.192.197])
	by plane.gmane.org with esmtp (Exim 4.69)
	(envelope-from <std-proposals+bncBDL6FI4NYYERB7H3ZOXAKGQE2MKKEOY@isocpp.org>)
	id 1ZRdPS-00040V-6Q
	for gclcip-std-proposals@m.gmane.org; Tue, 18 Aug 2015 11:42:22 +0200
Original-Received: by pdbpr2 with SMTP id pr2sf353796049pdb.3
        for <gclcip-std-proposals@m.gmane.org>; Tue, 18 Aug 2015 02:42:21 -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:x-spam-checked-in-group:list-post:list-help:list-archive
         :list-subscribe:list-unsubscribe;
        bh=lbJLj+Vxj10vl+Qsw1pF2jooeYhZ/d8CDBcO/seIP4c=;
        b=eAgzc8ynEk46MXsF0aNV1PCjPiwpdbMMt7StJyb/lL2cqgOMEFEcWjRmAkxeZTKhxw
         VbN9NTSmyYkoIoye9MbuMyuVjRyfnqAc9b8KL9huj0YjtgPJRf8tl3sWYyNoZGA7TQyo
         hzeJIeX42pS9MMPaFjOe/nOMFMETl4MtIkASmJ+230s+/VEQY4GGNOqreQH+zF+kot/x
         y2SDr5wDi1LBZjtRnUGQbTeaBAeggdRLfffL9DPN6WSQ3FDRHK+7jn4466EyUcwN5oea
         ElWBaBk+AAybCl5c4Jo+IaW5x5AH7gF2FI6Hmck9vnNQAUll+I12luRRp8Uap4ZiFi6g
         +HmQ==
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:x-spam-checked-in-group:list-post
         :list-help:list-archive:list-subscribe:list-unsubscribe;
        bh=lbJLj+Vxj10vl+Qsw1pF2jooeYhZ/d8CDBcO/seIP4c=;
        b=atTvvEuho8TG+yvdwR24nqX+hf6YEPIDBkEROnp9f7Cc16Ew3+YuP5nsJc8wvA5dFb
         EST6Qya8kGRnrWK0x7teAj4VDVALz+NGq+WzcmOuRiMT3JJDEWn2IEmEiAr3D/8NkJGm
         vezJ10jBNg4zW37yZpzNKOJq15Nf9Xtb5aIv2cr/IpZhXn7S3IexceyrtTp2eeFj2HZu
         y6UNlIlpB20d+92vci+6BeDv7r1/SeFaGUqC+7REBhfsA6SrJStZgO930z8g40LU6U+M
         uK6YwvqiX1/WSYYDo9tmNkAj7auufwSXrFZ26tA0lQ7aa4e1+oATQcjb0MJS/VW0U/wk
         HgAQ==
X-Gm-Message-State: ALoCoQly7R4i0Azmco/xKmDnHHtDnMuTL8612+KBTnfWhRsaWVu1nzRjJuEfsNbsSiyAU4ucyH/2
X-Received: by 10.66.185.81 with SMTP id fa17mr5317075pac.9.1439890941103;
        Tue, 18 Aug 2015 02:42:21 -0700 (PDT)
X-BeenThere: std-proposals@isocpp.org
Original-Received: by 10.140.95.101 with SMTP id h92ls2073100qge.55.gmail; Tue, 18 Aug
 2015 02:42:19 -0700 (PDT)
X-Received: by 10.140.101.129 with SMTP id u1mr72669qge.27.1439890939965;
        Tue, 18 Aug 2015 02:42:19 -0700 (PDT)
In-Reply-To: <CANu6V4UOxgZ9GV9f8DTbtW6BXrBPA7_2yUDRyhXv5BptvybHFA@mail.gmail.com>
X-Original-Sender: atch.cpp@gmail.com
Precedence: list
Mailing-list: list std-proposals@isocpp.org; contact std-proposals+owners@isocpp.org
List-ID: <std-proposals.isocpp.org>
X-Spam-Checked-In-Group: 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:19881
Archived-At: <http://permalink.gmane.org/gmane.comp.lang.c++.isocpp.proposals/19881>

------=_Part_84_713134243.1439890939278
Content-Type: multipart/alternative; 
	boundary="----=_Part_85_837242700.1439890939278"

------=_Part_85_837242700.1439890939278
Content-Type: text/plain; charset=UTF-8

That genuinely seems pointless/silly to me, unless you can provide some 
convincing use cases.

On Tuesday, 18 August 2015 10:34:39 UTC+1, Johannes Schaub wrote:
>
>
> Am 15.08.2015 18:49 schrieb "Arthur Tchaikovsky" <atch...@gmail.com 
> <javascript:>>:
> >
> > Hi, 
> > Does anyone see helpfulness of such solution:
> > Having fnc:
> >
> > void f(int a = 0, int b = 1, int c = 2, int d = 3);
> >
> > I think that it would be nice to be able to say whilst calling it and 
> requiring only some of those args to be non-default:
> >
> > f(default,2,default,4);
> >
> > Thoughts?
> >
>
> I would also wanna solve this with named arguments
>
>   f(.b = 2, .d = 4)
>
> And index based
>
>   f([1] = 2, [3] = 4)
>
> >
> >
> >
> >
> > -- 
> >
> > --- 
> > 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-proposal...@isocpp.org <javascript:>.
> > To post to this group, send email to std-pr...@isocpp.org <javascript:>.
> > Visit this group at 
> http://groups.google.com/a/isocpp.org/group/std-proposals/.
>

-- 

--- 
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_85_837242700.1439890939278
Content-Type: text/html; charset=UTF-8
Content-Transfer-Encoding: quoted-printable

<div dir=3D"ltr">That genuinely seems pointless/silly to me, unless you can=
 provide some convincing use cases.<br><br>On Tuesday, 18 August 2015 10:34=
:39 UTC+1, Johannes Schaub  wrote:<blockquote class=3D"gmail_quote" style=
=3D"margin: 0;margin-left: 0.8ex;border-left: 1px #ccc solid;padding-left: =
1ex;"><p dir=3D"ltr"><br>
Am 15.08.2015 18:49 schrieb &quot;Arthur Tchaikovsky&quot; &lt;<a href=3D"j=
avascript:" target=3D"_blank" gdf-obfuscated-mailto=3D"CFhE-z_UAwAJ" rel=3D=
"nofollow" onmousedown=3D"this.href=3D&#39;javascript:&#39;;return true;" o=
nclick=3D"this.href=3D&#39;javascript:&#39;;return true;">atch...@gmail.com=
</a>&gt;:<br>
&gt;<br>
&gt; Hi, <br>
&gt; Does anyone see helpfulness of such solution:<br>
&gt; Having fnc:<br>
&gt;<br>
&gt; void f(int a =3D 0, int b =3D 1, int c =3D 2, int d =3D 3);<br>
&gt;<br>
&gt; I think that it would be nice to be able to say whilst calling it and =
requiring only some of those args to be non-default:<br>
&gt;<br>
&gt; f(default,2,default,4);<br>
&gt;<br>
&gt; Thoughts?<br>
&gt;</p>
<p dir=3D"ltr">I would also wanna solve this with named arguments</p>
<p dir=3D"ltr">=C2=A0 f(.b =3D 2, .d =3D 4)</p>
<p dir=3D"ltr">And index based</p>
<p dir=3D"ltr">=C2=A0 f([1] =3D 2, [3] =3D 4)</p>
<p dir=3D"ltr">&gt;<br>
&gt;<br>
&gt;<br>
&gt;<br>
&gt; -- <br>
&gt;<br>
&gt; --- <br>
&gt; You received this message because you are subscribed to the Google Gro=
ups &quot;ISO C++ Standard - Future Proposals&quot; group.<br>
&gt; To unsubscribe from this group and stop receiving emails from it, send=
 an email to <a href=3D"javascript:" target=3D"_blank" gdf-obfuscated-mailt=
o=3D"CFhE-z_UAwAJ" rel=3D"nofollow" onmousedown=3D"this.href=3D&#39;javascr=
ipt:&#39;;return true;" onclick=3D"this.href=3D&#39;javascript:&#39;;return=
 true;">std-proposal...@<wbr>isocpp.org</a>.<br>
&gt; To post to this group, send email to <a href=3D"javascript:" target=3D=
"_blank" gdf-obfuscated-mailto=3D"CFhE-z_UAwAJ" rel=3D"nofollow" onmousedow=
n=3D"this.href=3D&#39;javascript:&#39;;return true;" onclick=3D"this.href=
=3D&#39;javascript:&#39;;return true;">std-pr...@isocpp.org</a>.<br>
&gt; Visit this group at <a href=3D"http://groups.google.com/a/isocpp.org/g=
roup/std-proposals/" target=3D"_blank" rel=3D"nofollow" onmousedown=3D"this=
..href=3D&#39;http://groups.google.com/a/isocpp.org/group/std-proposals/&#39=
;;return true;" onclick=3D"this.href=3D&#39;http://groups.google.com/a/isoc=
pp.org/group/std-proposals/&#39;;return true;">http://groups.google.com/a/<=
wbr>isocpp.org/group/std-<wbr>proposals/</a>.<br>
</p>
</blockquote></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_85_837242700.1439890939278--
------=_Part_84_713134243.1439890939278--

.
