220 39994 <90defe78-0849-1cbd-3835-bc73160ee829@westcontrol.com> article
Path: news.gmane.org!.POSTED!not-for-mail
From: David Brown <david@westcontrol.com>
Newsgroups: gmane.comp.lang.c++.isocpp.proposals
Subject: Re: Named Parameters for C++
Date: Fri, 24 Aug 2018 08:31:45 +0200
Lines: 64
Approved: news@gmane.org
Message-ID: <90defe78-0849-1cbd-3835-bc73160ee829@westcontrol.com>
References: <CAPuuy5eBx1ybcPjS6dNsk7n1_c2uhdRBS19qr=q5cj3cTURnLQ@mail.gmail.com>
 <pl3ogk$csr$1@blaine.gmane.org>
 <f3af9e48-f865-476e-8724-4af19ce23369@isocpp.org>
 <pl671k$gsb$1@blaine.gmane.org>
 <823c098a-0fb0-18c3-82f3-e8a8616312f1@gmail.com>
 <pl6vh8$kta$1@blaine.gmane.org>
 <2755b639-002d-a94b-a3d4-3a0197259cda@gmail.com>
 <1585ccdc-7057-d8df-a31b-cf9f7de9a6dd@westcontrol.com>
 <54e34f7c-f32b-a912-5229-240f855c9fad@gmail.com>
 <5dde96f3-24bc-0499-8019-eb8195bdaded@westcontrol.com>
 <d1905217-f914-6076-55a2-6b92b1880ed9@gmail.com>
 <35f836e7-f7af-e36f-e5f4-2be447d65576@westcontrol.com>
 <d3a82498-693b-e586-86a2-0af9364a7baf@gmail.com>
Reply-To: std-proposals@isocpp.org
NNTP-Posting-Host: blaine.gmane.org
Mime-Version: 1.0
Content-Type: text/plain; charset="UTF-8"; format=flowed
Content-Transfer-Encoding: quoted-printable
X-Trace: blaine.gmane.org 1535092185 16411 195.159.176.226 (24 Aug 2018 06:29:45 GMT)
X-Complaints-To: usenet@blaine.gmane.org
NNTP-Posting-Date: Fri, 24 Aug 2018 06:29:45 +0000 (UTC)
User-Agent: Mozilla/5.0 (Windows NT 6.1; WOW64; rv:52.0) Gecko/20100101
 Thunderbird/52.9.1
To: Matthew Woehlke <mwoehlke.floss@gmail.com>, <std-proposals@isocpp.org>
Original-X-From: std-proposals+bncBDP6R2XHXIARBVOM73NQKGQEH3IEQWQ@isocpp.org Fri Aug 24 08:29:41 2018
Return-path: <std-proposals+bncBDP6R2XHXIARBVOM73NQKGQEH3IEQWQ@isocpp.org>
Envelope-to: gclcip-std-proposals@m.gmane.org
Original-Received: from mail-lf1-f72.google.com ([209.85.167.72])
	by blaine.gmane.org with esmtp (Exim 4.84_2)
	(envelope-from <std-proposals+bncBDP6R2XHXIARBVOM73NQKGQEH3IEQWQ@isocpp.org>)
	id 1ft5bH-0004Af-V2
	for gclcip-std-proposals@m.gmane.org; Fri, 24 Aug 2018 08:29:40 +0200
Original-Received: by mail-lf1-f72.google.com with SMTP id z20-v6sf1895783lfh.0
        for <gclcip-std-proposals@m.gmane.org>; Thu, 23 Aug 2018 23:31:50 -0700 (PDT)
ARC-Seal: i=2; a=rsa-sha256; t=1535092310; cv=pass;
        d=google.com; s=arc-20160816;
        b=gbCp5QroFfh6UK3qNeHE0djzao1AsAL/DtYT6KUtvtvzkR3I5F3eaMYli4fZHEJEg/
         zUmeKOA4Ck9rLdHyr7kWilJC8+Sdr8Oz73omm9yY+UTWQ3+VKbO90TYB7rNsQ5uMACE7
         sNHEXL5NH2y/9JyofJdv5o670cccDpk5itzG5vdz+oo/F/ssvps/8wSS4H6uaUiWnRyw
         Qaj718OJE+hGaTSuHPtOubGqaeq+1Y3+0D1FDlnO0tLR4AgnACVp2AFxMUrEwvAYVMha
         GKJHguJycn1cMrN4JTAbqHyYgwj7sqA/D1+gBbBJyVayLP7EmgF76M6UMSSODDxWEvNl
         W3WA==
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:content-transfer-encoding
         :content-language:in-reply-to:mime-version:user-agent:date
         :message-id:from:references:to:subject:arc-authentication-results
         :arc-message-signature:dkim-signature:arc-authentication-results;
        bh=+FUU0DOUvyQzO1MMFlfvCk22cO/6rAeUB/7IY5436Nw=;
        b=j5Zm5Uj3mFkxbOQeOrUO//hs2yGFMKG2HfkDlC9nA+7lGJ71YW2RKrVPnuz2a6MWop
         sO6Q57r0ZRfKgpdB8uGynGgBYocNiVSbqaUZrxMthflvJZyQQ4w87HYwSdLNYC8rh2Sh
         S0SGIwko3TZJ8WLda6RX2eGTaESj7PfqcNizcjjZBIJBcXBHKiUw17LZt2wknaiIDLUM
         RFrkxP49c0mWt9jKjbSoXhNxAuBXklXF12vd3AaijJk/c0Yl/t1KIlUuooJqIcaC1N2L
         F9x+d2TSLncDfjSmLaQDQILI+USLJV3HI0ctd8e9m/kRQacWpSksNgcNIzy+yl 
ARC-Authentication-Results: i=2; mx.google.com;
       spf=pass (google.com: domain of david@westcontrol.com designates 213.162.250.24 as permitted sender) smtp.mailfrom=david@westcontrol.com
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed;
        d=isocpp-org.20150623.gappssmtp.com; s=20150623;
        h=subject:to:references:from:message-id:date:user-agent:mime-version
         :in-reply-to:content-language:content-transfer-encoding
         :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=+FUU0DOUvyQzO1MMFlfvCk22cO/6rAeUB/7IY5436Nw=;
        b=P/i7CgeJQrplw6Qk08aiSFM3Dz78zHmZezs+KfdInHzl9I8lf3UmP0fW9I1S/VRyu1
         jR0T8412U1oocmcL5UtoTgySgHx5Avf+bySxAUAhXH5O+ugVPFtQdZAjWID69jtDqq3c
         ISp/PRreD1pI7V7Fj+wacPR0QK+Pwo4SxN8Jm94MzR3A3d+helZbACkR/1BrknranRhW
         uzsT93X8TeTUp2AGpowjvHGiZY+yrTv7EPvc6U9rt6tsObVbpXna21mHv+qaGKr31kCn
         pSLyix0rmjc/UzVk0k4dPZbeL0Y2IYxwZYOE2XOQHh0Zr1CFZQmJnk2ujmj2vDna5s6r
         6Mm 
X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed;
        d=1e100.net; s=20161025;
        h=x-gm-message-state:subject:to:references:from:message-id:date
         :user-agent:mime-version:in-reply-to:content-language
         :content-transfer-encoding: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=+FUU0DOUvyQzO1MMFlfvCk22cO/6rAeUB/7IY5436Nw=;
        b=bwxlMM/Q1+97qLdjdG7kaZ52TtPepBaLP78jWdqjviMT+kSr7tBHq+F2hZZQeTDw30
         uDgTVia7iLY/UbxZmHGILwvi5xqMr6JNlfkOeYqYGv3R4hEFEpkXJMhCLPUBaAW02gQO
         T6fuQjeOqRvfQ6pPo3Oai2lsLzN7DQ3JQmEohfW8Cq5/5/Aoai+cZLdd5iRJZZQOaQKN
         Pr/QZcG1seW9e5Rwn560kF1fGFuWPuX57c+j9OJPFv8eoxxOuJ6Vm3ZLu+u/HdhHugV2
         WRqYy7z8JY4fIuFVMW4p70e1rPY+z0CN6sK6PTy9yGa 
X-Gm-Message-State: APzg51DXNjoH74S8sojMIXD7K15wZD49pr0weAeoAqvJ+oLEhzYd9c0H
	D8qBy3BeM6gF+blSKSeMbNnQtg==
X-Google-Smtp-Source: ANB0VdahihuM2xmpUejtQdaIGliPx4s4bmYYy6tylRsyjtunVnCaqMmVrmne31hCxj/0AuooVUrVFg==
X-Received: by 2002:a19:6a0b:: with SMTP id u11-v6mr10802lfu.24.1535092310617;
        Thu, 23 Aug 2018 23:31:50 -0700 (PDT)
X-BeenThere: std-proposals@isocpp.org
Original-Received: by 2002:a19:51d9:: with SMTP id g86-v6ls367543lfl.23.gmail; Thu, 23
 Aug 2018 23:31:48 -0700 (PDT)
X-Received: by 2002:a19:b585:: with SMTP id g5-v6mr271686lfk.149.1535092308932;
        Thu, 23 Aug 2018 23:31:48 -0700 (PDT)
ARC-Seal: i=1; a=rsa-sha256; t=1535092308; cv=none;
        d=google.com; s=arc-20160816;
        b=k0Fran35gt9UPYVwBr8i/3Ey4oA3v0XS8TbRCdF07hAsTGfaWqCuowiJFRWbmKX6y1
         aWrkG/l81N//8O0IZwVu0Wh8Di9ijA3qaX3q7vbVFPghw1BnXVN1khongGByS2Zht2at
         lOJCKtE6B/i5YaiLGaWQS5N0LBDMXjCHj5CWVSs1v8HP/txvCuTs04Q3ejFxN9l1PKkY
         K3TESvjbNRuA1AfEnHXuFGxxRZ/wC4V9oim7Raoi2Wey0XA7K/Wir+mxABBPQbaY0Odt
         dkMWSdKxNYPIChNoV8g/whcafsHLUFMP6bA4Z0K1zM7aBoMAmKZvZww/r5P7KBmK+TJ2
         BAVQ==
ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816;
        h=content-transfer-encoding:content-language:in-reply-to:mime-version
         :user-agent:date:message-id:from:references:to:subject
         :arc-authentication-results;
        bh=RWIJlSCMPejQuN01Zzc4aMevvSNCdjvEXhB3e+JdCOE=;
        b=JIxxj69XcsT7Cy5kqNd2aB75I2QL6qCU/q3RWbQZdkzT9tbJ8TMDleMiKU+xcaui8o
         e3XWLGSZ9AtE/ZgWmfmXqWf0Mv1HI+usnhKZp9dMnnk2bYbOfOzvwL2CYzXj+yET2sjD
         Z2WhYUHFTCOFOBuCx2MZ1azzBwtA4tZsBCcrK4jVFKGidY7wW/XWmZ3MEXWe6NunvNL5
         Uo8OfV6qBvfGMjVvUZLU8rh2mMpuRDtoJJ7OB6CbOQ3GkfgI5N85dActW3YF8HUhHvgd
         DG5sRiQfRotOgTPnMGxe7chTir0sHdjtrrxzIS12+ZXif0G/2MY21VVJoOkvrCIecpGJ
         AMUw==
ARC-Authentication-Results: i=1; mx.google.com;
       spf=pass (google.com: domain of david@westcontrol.com designates 213.162.250.24 as permitted sender) smtp.mailfrom=david@westcontrol.com
Original-Received: from mailfilter05.hatteland.com (mailfilter05.hatteland.com. [213.162.250.24])
        by mx.google.com with ESMTPS id d3-v6si960502ljj.22.2018.08.23.23.31.48
        for <std-proposals@isocpp.org>
        (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128);
        Thu, 23 Aug 2018 23:31:48 -0700 (PDT)
Received-SPF: pass (google.com: domain of david@westcontrol.com designates 213.162.250.24 as permitted sender) client-ip=213.162.250.24;
Original-Received: from localhost (localhost [127.0.0.1])
	by mailfilter05.hatteland.com (Postfix) with ESMTP id 54BC5147E6D;
	Fri, 24 Aug 2018 08:31:48 +0200 (CEST)
X-Virus-Scanned: by SpamTitan at hatteland.com
Original-Received: from mailfilter05.hatteland.com (localhost [127.0.0.1])
	by mailfilter05.hatteland.com (Postfix) with ESMTP id 8216D147E3C;
	Fri, 24 Aug 2018 08:31:47 +0200 (CEST)
Original-Received: from JHSVMHUB01.netsentral.no (unknown [172.21.1.101])
	(using TLSv1 with cipher ECDHE-RSA-AES256-SHA (256/256 bits))
	(No client certificate requested)
	by mailfilter05.hatteland.com (Postfix) with ESMTPS id 7E621147E25;
	Fri, 24 Aug 2018 08:31:47 +0200 (CEST)
Original-Received: from [192.168.0.77] (172.21.20.100) by e2010.hatteland.com
 (172.21.1.25) with Microsoft SMTP Server (TLS) id 14.3.224.2; Fri, 24 Aug
 2018 08:31:46 +0200
In-Reply-To: <d3a82498-693b-e586-86a2-0af9364a7baf@gmail.com>
Content-Language: en-GB
X-Originating-IP: [172.21.20.100]
X-Original-Sender: david@westcontrol.com
X-Original-Authentication-Results: mx.google.com;       spf=pass (google.com:
 domain of david@westcontrol.com designates 213.162.250.24 as permitted
 sender) smtp.mailfrom=david@westcontrol.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:39994
Archived-At: <http://permalink.gmane.org/gmane.comp.lang.c++.isocpp.proposals/39994>



On 23/08/2018 19:37, Matthew Woehlke wrote:
> On 2018-08-23 13:17, David Brown wrote:
>> On 23/08/18 18:44, Matthew Woehlke wrote:
>>> If we don't get the optional parts, you might as well modify your
>>> compiler to warn you about:
>>>
>>>  =C2=A0=C2=A0 void foo(int x);
>>>  =C2=A0=C2=A0 foo(/*y=3D*/5); // warning: 'y' !=3D 'x'
>>>
>>> ...and no language change is required.
>>
>> I see two disadvantages of that.=C2=A0 One is that it is seriously ugly
>> having comments in the middle of a function call - "foo(.y =3D 5)" is ve=
ry
>> much nicer and neater syntax.=C2=A0 The other is that because there is n=
o
>> standard, and neither limits nor requirements in what you might have in
>> these comments (maybe someone wants to write "foo( /* was 4 in last
>> version */ 5);", it would be hard to get it in common use.
>>
>> But as far as I see it, it is this checking that is the most important
>> feature.=C2=A0 It covers the two most vital points - it aids readability=
 and
>> clarity of the code, and it means mistakes are more likely to be caught
>> at compile-time.=C2=A0 These are both /good/ things - and IMHO they are =
worth
>> allowing the syntax "foo(.y =3D 5);" even if you don't get anything else=
..
>=20
> I understand what you're saying. I just happen to strongly disagree :-).
> (That is, I would agree with the above if you replace "most" with
> "least"...)

I think we just have a little difference in perspective.  You want=20
powerful new features, and increased checking and readability is a free=20
bonus from that.  I want increased checking and readability, and new=20
features might be a bonus from the way they are implemented.

>=20
> That said, my current vision would give you what you're asking for...
> but also overloading and skipping.
>=20
> Also, as has been elsewhere discussed, I'm not sure how forwarding would
> work without at least some degree of "strong" naming, and I don't see
> any proposal getting much traction if it doesn't "solve" forwarding.
>=20

We could get /my/ part done without worrying about forwarding...

But I agree it is unlikely that the standards would support a named=20
parameter system that doesn't cover a wider range of new functions.

--=20
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 e=
mail 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/90defe78-0849-1cbd-3835-bc73160ee829%40westcontr=
ol.com.

.
