220 39848 <CAPuuy5cqjR6C=--pD1fZQxHPQwU94dMLhTWD9MvkU6twszVhGg@mail.gmail.com> article
Path: news.gmane.org!.POSTED!not-for-mail
From: Justin Bassett <jbassett271@gmail.com>
Newsgroups: gmane.comp.lang.c++.isocpp.proposals
Subject: Re: Re: Named Parameters for C++
Date: Thu, 16 Aug 2018 21:04:34 -0700
Lines: 101
Approved: news@gmane.org
Message-ID: <CAPuuy5cqjR6C=--pD1fZQxHPQwU94dMLhTWD9MvkU6twszVhGg@mail.gmail.com>
References: <CAPuuy5eBx1ybcPjS6dNsk7n1_c2uhdRBS19qr=q5cj3cTURnLQ@mail.gmail.com>
 <pl3ogk$csr$1@blaine.gmane.org> <af7b98cc-be81-e6cd-667d-c1b56abe7514@gmail.com>
Reply-To: std-proposals@isocpp.org
NNTP-Posting-Host: blaine.gmane.org
Mime-Version: 1.0
Content-Type: multipart/alternative; boundary="00000000000005b5e4057399a9dc"
X-Trace: blaine.gmane.org 1534478563 9279 195.159.176.226 (17 Aug 2018 04:02:43 GMT)
X-Complaints-To: usenet@blaine.gmane.org
NNTP-Posting-Date: Fri, 17 Aug 2018 04:02:43 +0000 (UTC)
To: std-proposals@isocpp.org
Original-X-From: std-proposals+bncBC5PL3NYWEDBBX4S3HNQKGQET2VUYAI@isocpp.org Fri Aug 17 06:02:39 2018
Return-path: <std-proposals+bncBC5PL3NYWEDBBX4S3HNQKGQET2VUYAI@isocpp.org>
Envelope-to: gclcip-std-proposals@m.gmane.org
Original-Received: from mail-oi0-f71.google.com ([209.85.218.71])
	by blaine.gmane.org with esmtp (Exim 4.84_2)
	(envelope-from <std-proposals+bncBC5PL3NYWEDBBX4S3HNQKGQET2VUYAI@isocpp.org>)
	id 1fqVyA-0002HN-1A
	for gclcip-std-proposals@m.gmane.org; Fri, 17 Aug 2018 06:02:38 +0200
Original-Received: by mail-oi0-f71.google.com with SMTP id j17-v6sf6086790oii.8
        for <gclcip-std-proposals@m.gmane.org>; Thu, 16 Aug 2018 21:04:48 -0700 (PDT)
ARC-Seal: i=2; a=rsa-sha256; t=1534478688; cv=pass;
        d=google.com; s=arc-20160816;
        b=McrR/MKLdNx4+gSHMA7C2meIwRbYRMd0VhlVfI+6jPQm8buBMVK/6fKcmQwfzOtafe
         y7fEdyGGB5isIed5XhUe30YUXLtXNbaWGt8lOej9Bk8UV9KqpmQ8X95quOD1pHJFcmLO
         QIlIOoOQsNq0QgzBI+rfp2TCQnMMz4uFUddyAWsUFFjx20IGSAYGcx6BMEIUBdik1vHP
         nRh8jhEpIxClnAjM3QWyxrUA0sCgfXUQNYaZo7Xy+IP73J0qAChOLGIrNBwFcL2mt8ul
         6IEgmA96cPg/MkIZGoAcKltFOBQHDYXMZhtGzOXl+glnvGtg/x82Xb5yMmqBYZNtTP6k
         1iKQ==
ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816;
        h=list-unsubscribe:list-subscribe:list-archive:list-help:list-post
         :list-id:mailing-list:precedence:reply-to:to:subject:message-id:date
         :from:in-reply-to:references:mime-version:arc-authentication-results
         :arc-message-signature:dkim-signature:arc-authentication-results;
        bh=WxeN9+xSEDDcgGY1HorAVz/uNZXredBKWiD1unJRavo=;
        b=CUvhfv+mhDoLPxPdLtCJT3Q2t7ZHMiBWZM7TR8U56XgXhlNaeXRwz9aEHrwkq+G6uG
         uxTv+A0ui28Cx3CwLI4HZgjG4/oYnKgkvpqYw72vSABL9uvcrXwEv+YtYv5+YnbmyGfs
         gm1NJhPKt0L1njGTC5PJl+mTrRkwxctrPk4jG8OXGoKz5gY+Yio6JImhVTYhWAX+cQA/
         6234LdRWUrddjkNvlLouhWwDuxH5NI+K9PMhG6whtxp8e5LuHWVRYOH3uamlfDyJsy1B
         UvQcSVuWAU5M8CciQwoMax1igv98bIQaIXjQ6xYPVh2UmQ9ZygBgc24ph3+yTdF/494i
         p9yw==
ARC-Authentication-Results: i=2; mx.google.com;
       dkim=pass header.i=@gmail.com header.s=20161025 header.b=aryPKnPU;
       spf=pass (google.com: domain of jbassett271@gmail.com designates 209.85.220.41 as permitted sender) smtp.mailfrom=jbassett271@gmail.com;
       dmarc=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed;
        d=isocpp-org.20150623.gappssmtp.com; s=20150623;
        h=mime-version:references:in-reply-to:from:date:message-id:subject:to
         :x-original-sender:x-original-authentication-results:reply-to
         :precedence:mailing-list:list-id:list-post:list-help:list-archive
         :list-subscribe:list-unsubscribe;
        bh=WxeN9+xSEDDcgGY1HorAVz/uNZXredBKWiD1unJRavo=;
        b=QC65XhvrNarkgFnbtsWCKAuR+qsdtgKUVce5cFZBbxmLwtZVE5JzGOUBmR8F8JSglE
         HF4Kqz9ZlqxlnSzhMavMXNhepmauvu7X0kijiZC9LUgAgJg3AEm3NlqIuzp2akeuJGnJ
         fxZnXLr8dsxyIs1pYZ88RKns7iAwgzhFlBYsFf4fZxHCTyQ6PpmgW3MKnXKs/UZ/yxkg
         WP/laXG1HrRYtx4xzHUy8bImFJNN/qQsmFolvfNqY+wTb1KsY8ouzY6OFLmi6d8RkgOP
         y2LxI7UsFAVkXtWLFGVqeTfAMpaTrejZK0gQDPaLy1XyeBt8g8EEgRXHNy5ZX0MQprFN
         NZ2g==
X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed;
        d=1e100.net; s=20161025;
        h=x-gm-message-state:mime-version:references:in-reply-to:from:date
         :message-id:subject:to:x-original-sender
         :x-original-authentication-results:reply-to:precedence:mailing-list
         :list-id:x-spam-checked-in-group:list-post:list-help:list-archive
         :list-subscribe:list-unsubscribe;
        bh=WxeN9+xSEDDcgGY1HorAVz/uNZXredBKWiD1unJRavo=;
        b=EeYCuV3FnSudIv1XZ29eEb8qi5Zt39kHDNhOqB8xOqrki7l5eQ80vI0nZRUVXUdv6r
         tg1UzxIIN1z63HK/yPg9hk1N+IfQchmQmf+/SrOK2F672V7bT13PAfyQ9JO0qG6wF1/v
         hxFMMmUbjgK+lUIpSTU/xJM9oe6sDJq8wwj/1L4w9xyXw22LtgFyNPorstRerWksm2ha
         tmmpomhNs+2kMcVa3yPMkInxe9B0rVmR+Mc1Z+D3rF8fYXjyd3p4jiHCtIWORYmOcKuM
         so6NAsriV0M9/Pb9zfP1mooMO3xM291fsspkiz4GKLGTQq2WToA22CWG9fA2xmPhhT6l
         bWkA==
X-Gm-Message-State: AOUpUlHwhR10HaPi+C2MFe8mWrGEr0mz2Uw3VZRIohxOfxlAsjbsOjxT
	3a43AdlMO5RlEmdtStfevibc+g==
X-Google-Smtp-Source: AA+uWPzDrMAPogPeoCb4cgMxgUHOKmQCCbq24cZG5pqe/0cSUIMxhkqSbnXq/NYN3QllJKt2hvb1og==
X-Received: by 2002:aca:5550:: with SMTP id j77-v6mr19851596oib.75.1534478688040;
        Thu, 16 Aug 2018 21:04:48 -0700 (PDT)
X-BeenThere: std-proposals@isocpp.org
Original-Received: by 2002:aca:fc83:: with SMTP id a125-v6ls3795630oii.2.gmail; Thu, 16
 Aug 2018 21:04:47 -0700 (PDT)
X-Received: by 2002:aca:4d56:: with SMTP id a83-v6mr709056oib.205.1534478686984;
        Thu, 16 Aug 2018 21:04:46 -0700 (PDT)
ARC-Seal: i=1; a=rsa-sha256; t=1534478686; cv=none;
        d=google.com; s=arc-20160816;
        b=AA7N18WZhCYt3+4+RjjxtP81OYMe/5QiCCqAD93WnrO/vjTkunKXKDyC+jiteJ7yIh
         zVcyaM7aM9h0jBhZI4jycwe8UwH301QA0EzHWB9D9iBxUxcmO5TXyOCyaKmSthFku2qb
         Rr257euY8WUnDldh+56x3i9cIx2SUy9xAqZxZUA24Wgj5mIngTRFQchZ3x8OCsqbtFa0
         VW7igUwG58NOYZQ7eXEaNpRkxiOALD4t22hLDjVtXUhrJxI+0uiXvJMcg0pb3Aj3gHYA
         O99El/q0aJnBMTp90NcT0lH/JhUktmxL+qACLEm+1l77+pW8e7nHpr2GBRJqp62qy4Bi
         Mt+g==
ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816;
        h=to:subject:message-id:date:from:in-reply-to:references:mime-version
         :dkim-signature:arc-authentication-results;
        bh=ShAZtEoKzPJDPiy1o9fPwwYLz2WzbPw2qXg/p/4TIec=;
        b=IuoBMhkKkp7NDS2KxfDzbW+nIB0uZ2qRUjNT+P7ypPp576sOB64wPeixA12PeD2fPr
         mmgaS7yPaA4aXZ0IjArg4vzXp+YxrwxriZqus4MbBlhcLseaQMx8Ph0yWLr4LayUQJc8
         qJCqsGAoQHK/TR51+ATMh47Ws9kz1bHcDsSCgGoUK5UCu7bcMMj1iQsmz24OH9Yi37VF
         9ncEJxrgdgY4uV0xDVFDTc/mB0P2mntdYz7FEdbgLzeNPX70tVAdHEfctZWFZxBG+huO
         iuIsWhwWRNoItkLZKI0K8UktqT0dUHx6IuY5ACiLsrOP6wLcUeZItNYCkJNZW4J/iR5x
         jAqg==
ARC-Authentication-Results: i=1; mx.google.com;
       dkim=pass header.i=@gmail.com header.s=20161025 header.b=aryPKnPU;
       spf=pass (google.com: domain of jbassett271@gmail.com designates 209.85.220.41 as permitted sender) smtp.mailfrom=jbassett271@gmail.com;
       dmarc=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com
Original-Received: from mail-sor-f41.google.com (mail-sor-f41.google.com. [209.85.220.41])
        by mx.google.com with SMTPS id r4-v6sor585462oia.225.2018.08.16.21.04.46
        for <std-proposals@isocpp.org>
        (Google Transport Security);
        Thu, 16 Aug 2018 21:04:46 -0700 (PDT)
Received-SPF: pass (google.com: domain of jbassett271@gmail.com designates 209.85.220.41 as permitted sender) client-ip=209.85.220.41;
X-Received: by 2002:aca:f2c3:: with SMTP id q186-v6mr803323oih.193.1534478686466;
 Thu, 16 Aug 2018 21:04:46 -0700 (PDT)
In-Reply-To: <af7b98cc-be81-e6cd-667d-c1b56abe7514@gmail.com>
X-Original-Sender: jbassett271@gmail.com
X-Original-Authentication-Results: mx.google.com;       dkim=pass
 header.i=@gmail.com header.s=20161025 header.b=aryPKnPU;       spf=pass
 (google.com: domain of jbassett271@gmail.com designates 209.85.220.41 as
 permitted sender) smtp.mailfrom=jbassett271@gmail.com;       dmarc=pass
 (p=NONE sp=QUARANTINE dis=NONE) header.from=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: <https://groups.google.com/a/isocpp.org/group/std-proposals/post>, <mailto:std-proposals@isocpp.org>
List-Help: <https://support.google.com/a/isocpp.org/bin/topic.py?topic=25838>, <mailto:std-proposals+help@isocpp.org>
List-Archive: <https://groups.google.com/a/isocpp.org/group/std-proposals/>
List-Subscribe: <https://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>,
 <https://groups.google.com/a/isocpp.org/group/std-proposals/subscribe>
Xref: news.gmane.org gmane.comp.lang.c++.isocpp.proposals:39848
Archived-At: <http://permalink.gmane.org/gmane.comp.lang.c++.isocpp.proposals/39848>

--00000000000005b5e4057399a9dc
Content-Type: text/plain; charset="UTF-8"

On Thu, Aug 16, 2018 at 7:34 AM Matthew Woehlke <mwoehlke.floss@gmail.com>
wrote:

> On 2018-08-16 07:53, David Brown wrote:
> > I am at a loss to why people key wanting to make this such a complicated
> > issue.
> > [...]
> > 2. The primary use is to check that parameters are given in the right
> > order, with the ability to re-order parameters at the call site as a
> > secondary concern.
>
> ...probably because plenty of people disagree with this point. AFAIAC,
> any proposal that does NOT allow these:
>
>   void foo(int, int :a = 1, int :b = 2, int :c = 12);
>   foo(3, b: 5); // foo(3, 1, 5, 12)
>
>   void bar(int :a);
>   void bar(int :x); // distinct overload
>
> ...is pointless. Checking argument order is, IMHO, not only *not* "the
> primary use", but *optional*.
>

I agree for the most part, but I disagree that this should be a valid
overload set, unless parameters are name-only:

void bar(int :a);
void bar(int :x);

The problem is that bar(4) is ambiguous. It would be better to catch this
at the declaration rather than at the first ambiguous point of use.
Overloading on name-only parameters is just fine.

-- 
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.
To view this discussion on the web visit https://groups.google.com/a/isocpp.org/d/msgid/std-proposals/CAPuuy5cqjR6C%3D--pD1fZQxHPQwU94dMLhTWD9MvkU6twszVhGg%40mail.gmail.com.

--00000000000005b5e4057399a9dc
Content-Type: text/html; charset="UTF-8"
Content-Transfer-Encoding: quoted-printable

<div dir=3D"ltr"><br><div class=3D"gmail_quote"><div dir=3D"ltr">On Thu, Au=
g 16, 2018 at 7:34 AM Matthew Woehlke &lt;<a href=3D"mailto:mwoehlke.floss@=
gmail.com">mwoehlke.floss@gmail.com</a>&gt; wrote:<br></div><blockquote cla=
ss=3D"gmail_quote" style=3D"margin:0 0 0 .8ex;border-left:1px #ccc solid;pa=
dding-left:1ex">On 2018-08-16 07:53, David Brown wrote:<br>
&gt; I am at a loss to why people key wanting to make this such a complicat=
ed<br>
&gt; issue.<br>
&gt; [...]<br>
&gt; 2. The primary use is to check that parameters are given in the right<=
br>
&gt; order, with the ability to re-order parameters at the call site as a<b=
r>
&gt; secondary concern.<br>
<br>
....probably because plenty of people disagree with this point. AFAIAC,<br>
any proposal that does NOT allow these:<br>
<br>
=C2=A0 void foo(int, int :a =3D 1, int :b =3D 2, int :c =3D 12);<br>
=C2=A0 foo(3, b: 5); // foo(3, 1, 5, 12)<br>
<br>
=C2=A0 void bar(int :a);<br>
=C2=A0 void bar(int :x); // distinct overload<br>
<br>
....is pointless. Checking argument order is, IMHO, not only *not* &quot;the=
<br>
primary use&quot;, but *optional*.<br></blockquote><div><br></div><div>I ag=
ree for the most part, but I disagree that this should be a valid overload =
set, unless parameters are name-only:</div><div><br></div><div><font face=
=3D"monospace, monospace">void bar(int :a);</font></div><div><font face=3D"=
monospace, monospace">void bar(int :x);</font></div><div><br></div><div>The=
 problem is that <font face=3D"monospace, monospace">bar(4)</font> is ambig=
uous. It would be better to catch this at the declaration rather than at th=
e first ambiguous point of use. Overloading on name-only parameters is just=
 fine.</div><div>=C2=A0<br></div></div></div>

<p></p>

-- <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 />
To view this discussion on the web visit <a href=3D"https://groups.google.c=
om/a/isocpp.org/d/msgid/std-proposals/CAPuuy5cqjR6C%3D--pD1fZQxHPQwU94dMLhT=
WD9MvkU6twszVhGg%40mail.gmail.com?utm_medium=3Demail&utm_source=3Dfooter">h=
ttps://groups.google.com/a/isocpp.org/d/msgid/std-proposals/CAPuuy5cqjR6C%3=
D--pD1fZQxHPQwU94dMLhTWD9MvkU6twszVhGg%40mail.gmail.com</a>.<br />

--00000000000005b5e4057399a9dc--

.
