220 4152 <CAOHCbisfOy=6=S6eGwkcDpD9WjrN4WHyq+Q-9Ega7V6Sp8JLXg@mail.gmail.com> article
Path: news.gmane.org!not-for-mail
From: Tony V E <tvaneerd@gmail.com>
Newsgroups: gmane.comp.lang.c++.isocpp.proposals
Subject: Re: Default values in middle parameters in a function
Date: Wed, 1 May 2013 16:41:04 -0400
Lines: 85
Approved: news@gmane.org
Message-ID: <CAOHCbisfOy=6=S6eGwkcDpD9WjrN4WHyq+Q-9Ega7V6Sp8JLXg@mail.gmail.com>
References: <25d51458-9a2e-4607-9b1a-9d2a7be8df4e@isocpp.org>
	<51804038.4040903@wanadoo.fr>
	<CAE1+Xsb1Aq9+gSeu=6NjHvks3vbMGmkoHJsxDTYW9JZxJ=oTPQ@mail.gmail.com>
	<5180CB96.6080906@wanadoo.fr>
	<CAE1+XsaNhKReghsPzS=Bv7RC7ciMqCM3wFLT6j80YXzrQW-RSA@mail.gmail.com>
Reply-To: std-proposals@isocpp.org
NNTP-Posting-Host: plane.gmane.org
Mime-Version: 1.0
Content-Type: multipart/alternative; boundary=089e0122aefefa519004dbae2271
X-Trace: ger.gmane.org 1367440869 24648 80.91.229.3 (1 May 2013 20:41:09 GMT)
X-Complaints-To: usenet@ger.gmane.org
NNTP-Posting-Date: Wed, 1 May 2013 20:41:09 +0000 (UTC)
To: std-proposals@isocpp.org
Original-X-From: std-proposals+bncBCUZ5QWKNQIOD64FRQCRUBBMIYZRU@isocpp.org Wed May 01 22:41:09 2013
Return-path: <std-proposals+bncBCUZ5QWKNQIOD64FRQCRUBBMIYZRU@isocpp.org>
Envelope-to: gclcip-std-proposals@m.gmane.org
Original-Received: from mail-ee0-f71.google.com ([74.125.83.71])
	by plane.gmane.org with esmtp (Exim 4.69)
	(envelope-from <std-proposals+bncBCUZ5QWKNQIOD64FRQCRUBBMIYZRU@isocpp.org>)
	id 1UXdpq-00042J-7g
	for gclcip-std-proposals@m.gmane.org; Wed, 01 May 2013 22:41:06 +0200
Original-Received: by mail-ee0-f71.google.com with SMTP id c13sf2631419eek.10
        for <gclcip-std-proposals@m.gmane.org>; Wed, 01 May 2013 13:41:05 -0700 (PDT)
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed;
        d=gmail.com; s=20120113;
        h=x-received:x-beenthere: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=ZSxxAVq5edXddpEAm6R8yYzef83oE/ZaLIsxaIlYKCU=;
        b=jTYyUoXUEhbXyVpeQJDUmpwUcEpfHeLb+XaYzIZQYoq04IKDTrnVJGiKkxSXdBY9ow
         8YCSket1bXNLMVUALm525MNj/4D3gIDruA4YOvbtIghxi5R+G20ZltBm4k5Hb+SOHFRm
         wgcPZF55SXOM8UvkHZ2/jBeHSD7PDcrIVhQL2pn+wrBSRqBqq7e1js3Vu87843Rmkevo
         o2d7YhuvTtLqoLfKaDjgPUiAJiBA3koNf8vT0yVbi2o5fmTpKJoj/iQ5AtWYWWwn+ckh
         iXkjgQg36o9GgTRU1TjbP7w3Pb0a6LePF7sbr+LF/6syeUDsGObPWHrhl1KCn2h3qK1u
  
X-Received: by 10.112.136.70 with SMTP id py6mr658713lbb.22.1367440865864;
        Wed, 01 May 2013 13:41:05 -0700 (PDT)
X-BeenThere: std-proposals@isocpp.org
Original-Received: by 10.152.19.103 with SMTP id d7ls88450lae.18.gmail; Wed, 01 May
 2013 13:41:04 -0700 (PDT)
X-Received: by 10.112.141.38 with SMTP id rl6mr1665169lbb.101.1367440864638;
        Wed, 01 May 2013 13:41:04 -0700 (PDT)
Original-Received: from mail-la0-x22e.google.com (mail-la0-x22e.google.com [2a00:1450:4010:c03::22e])
        by mx.google.com with ESMTPS id ap10si619948lac.98.2013.05.01.13.41.04
        for <std-proposals@isocpp.org>
        (version=TLSv1 cipher=ECDHE-RSA-RC4-SHA bits=128/128);
        Wed, 01 May 2013 13:41:04 -0700 (PDT)
Received-SPF: pass (google.com: domain of tvaneerd@gmail.com designates 2a00:1450:4010:c03::22e as permitted sender) client-ip=2a00:1450:4010:c03::22e;
Original-Received: by mail-la0-f46.google.com with SMTP id fs13so1618433lab.5
        for <std-proposals@isocpp.org>; Wed, 01 May 2013 13:41:04 -0700 (PDT)
X-Received: by 10.152.120.231 with SMTP id lf7mr1486277lab.40.1367440864463;
 Wed, 01 May 2013 13:41:04 -0700 (PDT)
Original-Received: by 10.112.2.167 with HTTP; Wed, 1 May 2013 13:41:04 -0700 (PDT)
In-Reply-To: <CAE1+XsaNhKReghsPzS=Bv7RC7ciMqCM3wFLT6j80YXzrQW-RSA@mail.gmail.com>
X-Original-Sender: tvaneerd@gmail.com
X-Original-Authentication-Results: mx.google.com;       spf=pass (google.com:
 domain of tvaneerd@gmail.com designates 2a00:1450:4010:c03::22e as permitted
 sender) smtp.mail=tvaneerd@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:4152
Archived-At: <http://permalink.gmane.org/gmane.comp.lang.c++.isocpp.proposals/4152>

--089e0122aefefa519004dbae2271
Content-Type: text/plain; charset=ISO-8859-1

On Wed, May 1, 2013 at 4:50 AM, Hariharan Subramanian <tohari@gmail.com>wrote:

>
> Named parameters solves this problem. But introducing named parameters
> only for this would be an overkill. Even otherwise, I think named
> parameters is unnecessary. Cannot the IDE simply display the name of the
> parameter adjacent to the parameter passed? No need to change the language
> at all. Named parameters would have been useful during the 1990s but not
> now.
>
> Regards,
> Hariharan S
>
>
>

The IDE showing names doesn't help much.  The difference is:

foo(10, default, default, default, 12, default)
vs
foo(.x = 10, .z = 12)

Some people might find the second easier to read and understand.  (And some
might prefer the first because it doesn't "hide" as much.)

Tony

-- 

--- 
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/?hl=en.



--089e0122aefefa519004dbae2271
Content-Type: text/html; charset=ISO-8859-1
Content-Transfer-Encoding: quoted-printable

<div dir=3D"ltr"><br><div class=3D"gmail_extra"><br><br><div class=3D"gmail=
_quote">On Wed, May 1, 2013 at 4:50 AM, Hariharan Subramanian <span dir=3D"=
ltr">&lt;<a href=3D"mailto:tohari@gmail.com" target=3D"_blank">tohari@gmail=
..com</a>&gt;</span> wrote:<br>
<blockquote class=3D"gmail_quote" style=3D"margin:0 0 0 .8ex;border-left:1p=
x #ccc solid;padding-left:1ex"><div dir=3D"ltr"><div class=3D"gmail_extra">=
<div class=3D"gmail_quote"><br><div>Named parameters solves this problem. B=
ut introducing named parameters only for this would be an overkill. Even ot=
herwise, I think named parameters is unnecessary. Cannot the IDE simply dis=
play the name of the parameter adjacent to the parameter passed? No need to=
 change the language at all. Named parameters would have been useful during=
 the 1990s but not now.</div>

<div><br></div><div>Regards,</div><div>Hariharan S</div><div><br></div></di=
v></div></div><div class=3D"HOEnZb"><div>=A0</div></div></blockquote><div><=
br></div><div>The IDE showing names doesn&#39;t help much.=A0 The differenc=
e is:<br>
<br></div><div>foo(10, default, default, default, 12, default)<br></div><di=
v>vs<br></div><div>foo(.x =3D 10, .z =3D 12)<br><br></div><div>Some people =
might find the second easier to read and understand.=A0 (And some might pre=
fer the first because it doesn&#39;t &quot;hide&quot; as much.)<br>
<br></div><div>Tony<br></div></div></div></div>

<p></p>

-- <br />
&nbsp;<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 std-proposals+unsubscribe@isocpp.org.<br />
To post to this group, send email to std-proposals@isocpp.org.<br />
Visit this group at <a href=3D"http://groups.google.com/a/isocpp.org/group/=
std-proposals/?hl=3Den">http://groups.google.com/a/isocpp.org/group/std-pro=
posals/?hl=3Den</a>.<br />
&nbsp;<br />
&nbsp;<br />

--089e0122aefefa519004dbae2271--

.
