220 4166 <CAE1+XsZYON7fGUcKmh_+TbQXuaydwwJpT3fU6VarfPnYyfJSDg@mail.gmail.com> article
Path: news.gmane.org!not-for-mail
From: Hariharan Subramanian <tohari@gmail.com>
Newsgroups: gmane.comp.lang.c++.isocpp.proposals
Subject: Re: Default values in middle parameters in a function
Date: Thu, 2 May 2013 10:29:48 +0530
Lines: 86
Approved: news@gmane.org
Message-ID: <CAE1+XsZYON7fGUcKmh_+TbQXuaydwwJpT3fU6VarfPnYyfJSDg@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>
	<CAOHCbisfOy=6=S6eGwkcDpD9WjrN4WHyq+Q-9Ega7V6Sp8JLXg@mail.gmail.com>
Reply-To: std-proposals@isocpp.org
NNTP-Posting-Host: plane.gmane.org
Mime-Version: 1.0
Content-Type: multipart/alternative; boundary=001a11c33a5292680d04dbb51a51
X-Trace: ger.gmane.org 1367470794 1981 80.91.229.3 (2 May 2013 04:59:54 GMT)
X-Complaints-To: usenet@ger.gmane.org
NNTP-Posting-Date: Thu, 2 May 2013 04:59:54 +0000 (UTC)
To: std-proposals@isocpp.org
Original-X-From: std-proposals+bncBCJZFFHTQQIBBRXFQ6GAKGQESHUIDHY@isocpp.org Thu May 02 06:59:52 2013
Return-path: <std-proposals+bncBCJZFFHTQQIBBRXFQ6GAKGQESHUIDHY@isocpp.org>
Envelope-to: gclcip-std-proposals@m.gmane.org
Original-Received: from mail-wg0-f72.google.com ([74.125.82.72])
	by plane.gmane.org with esmtp (Exim 4.69)
	(envelope-from <std-proposals+bncBCJZFFHTQQIBBRXFQ6GAKGQESHUIDHY@isocpp.org>)
	id 1UXlcV-000624-Nt
	for gclcip-std-proposals@m.gmane.org; Thu, 02 May 2013 06:59:51 +0200
Original-Received: by mail-wg0-f72.google.com with SMTP id e11sf302467wgh.7
        for <gclcip-std-proposals@m.gmane.org>; Wed, 01 May 2013 21:59:51 -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=1e2NjQ0b2khWnBEg09j0U8RdXwOJ7oB+WlIpbSJkrOM=;
        b=KWz7TYjMX8NGG4IewiXHRWbD2q2pyl4jbaIlhjyCc2ZeRzLmqJCWnsZ4nR3Ms0EM5J
         K2j3xYkCB4nhtyr8Ta2d4JCj7ED1+l+vuc06tsGsRimtWsCMyZ5xVkKT/NIaq4zRRrRK
         28V6sT+Te5NXAkHMabUIJxY3JKnqLUmYQ5iqX+1BxPbCMIJFfs1qINx83esa7KPNjaeb
         s763nQcIpFAn3KAAK1Cfm3+j3ILe3JKhNaB3llTfm6s0mwc/VhRmJlMCKARDS7uw/FPd
         8L1xu5wNEjT+ZskKv1k6v0oD+nAGnA/QRTZgy2EU1E0NnfTBAdihqTxiXMbLAL6FE47J
  
X-Received: by 10.152.28.202 with SMTP id d10mr4907845lah.3.1367470791245;
        Wed, 01 May 2013 21:59:51 -0700 (PDT)
X-BeenThere: std-proposals@isocpp.org
Original-Received: by 10.152.170.164 with SMTP id an4ls88347lac.98.gmail; Wed, 01 May
 2013 21:59:49 -0700 (PDT)
X-Received: by 10.152.21.106 with SMTP id u10mr1889471lae.11.1367470789480;
        Wed, 01 May 2013 21:59:49 -0700 (PDT)
Original-Received: from mail-lb0-f175.google.com (mail-lb0-f175.google.com [209.85.217.175])
        by mx.google.com with ESMTPS id s4si729358laa.238.2013.05.01.21.59.48
        for <std-proposals@isocpp.org>
        (version=TLSv1 cipher=ECDHE-RSA-RC4-SHA bits=128/128);
        Wed, 01 May 2013 21:59:48 -0700 (PDT)
Received-SPF: pass (google.com: domain of tohari@gmail.com designates 209.85.217.175 as permitted sender) client-ip=209.85.217.175;
Original-Received: by mail-lb0-f175.google.com with SMTP id w20so156922lbh.6
        for <std-proposals@isocpp.org>; Wed, 01 May 2013 21:59:48 -0700 (PDT)
X-Received: by 10.112.199.194 with SMTP id jm2mr2022216lbc.21.1367470788207;
 Wed, 01 May 2013 21:59:48 -0700 (PDT)
Original-Received: by 10.112.33.177 with HTTP; Wed, 1 May 2013 21:59:48 -0700 (PDT)
In-Reply-To: <CAOHCbisfOy=6=S6eGwkcDpD9WjrN4WHyq+Q-9Ega7V6Sp8JLXg@mail.gmail.com>
X-Original-Sender: tohari@gmail.com
X-Original-Authentication-Results: mx.google.com;       spf=pass (google.com:
 domain of tohari@gmail.com designates 209.85.217.175 as permitted sender)
 smtp.mail=tohari@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:4166
Archived-At: <http://permalink.gmane.org/gmane.comp.lang.c++.isocpp.proposals/4166>

--001a11c33a5292680d04dbb51a51
Content-Type: text/plain; charset=ISO-8859-1

> 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.)
>

By IDE showing names I meant this. We type the following
foo(10, default, default, default, 12, default)
But the IDE shows it as
foo(*param1:* 10, *param2:* default, *param3:* default, *param4:* default, *
param5:* 12);

This is similar to IDE using a special character to show spaces, tabs &
newlines. I don't see any difference between IDE doing this and we doing
it. The existing code also works with this. We need not have a language
feature which can be done better by the IDE. I agree that it will not work
with other general purpose editors. Other than that is there any use of
named parameters?

Regards,
Hariharan S

-- 

--- 
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.



--001a11c33a5292680d04dbb51a51
Content-Type: text/html; charset=ISO-8859-1
Content-Transfer-Encoding: quoted-printable

<div dir=3D"ltr"><br><div class=3D"gmail_extra"><div class=3D"gmail_quote">=
<blockquote class=3D"gmail_quote" style=3D"margin:0px 0px 0px 0.8ex;border-=
left-width:1px;border-left-color:rgb(204,204,204);border-left-style:solid;p=
adding-left:1ex">
<div dir=3D"ltr"><div class=3D"gmail_extra"><div class=3D"gmail_quote"><div=
>The IDE showing names doesn&#39;t help much.=A0 The difference 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.)</div>
</div></div></div></blockquote><div><br></div><div style>By IDE showing nam=
es I meant this. We type the following</div><div style>foo(10, default, def=
ault, default, 12, default)<br></div><div style>But the IDE shows it as</di=
v>
<div style>foo(<i><b>param1:</b></i> 10, <i><b>param2:</b></i> default, <i>=
<b>param3:</b></i> default, <i><b>param4:</b></i> default, <i><b>param5:</b=
></i> 12);</div><div style><br></div><div style>This is similar to IDE usin=
g a special character to show spaces, tabs &amp; newlines. I don&#39;t see =
any difference between IDE doing this and we doing it. The existing code al=
so works with this. We need not have a language feature which can be done b=
etter by the IDE. I agree that it will not work with other general purpose =
editors. Other than that is there any use of named parameters?</div>
<div style><br></div><div style>Regards,</div><div style>Hariharan S</div><=
div style><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 />

--001a11c33a5292680d04dbb51a51--

.
