220 41131 <CAHSYqdZOye=G4N4aVcQj7P2GoJVgEbXcrDCtCSW5uCxDnq4+ZQ@mail.gmail.com> article
Path: news.gmane.org!.POSTED!not-for-mail
From: Hyman Rosen <hyman.rosen@gmail.com>
Newsgroups: gmane.comp.lang.c++.isocpp.proposals
Subject: Re: Function Parameter of Struct Type -> Named Parameters
Date: Thu, 29 Nov 2018 10:50:15 -0500
Lines: 66
Approved: news@gmane.org
Message-ID: <CAHSYqdZOye=G4N4aVcQj7P2GoJVgEbXcrDCtCSW5uCxDnq4+ZQ@mail.gmail.com>
References: <CAB+4KHLe6zDPRreF2q0zQptUgrO0-_u8VrAOA7Du+_KHxhGUnw@mail.gmail.com>
Reply-To: std-proposals@isocpp.org
NNTP-Posting-Host: blaine.gmane.org
Mime-Version: 1.0
Content-Type: multipart/alternative; boundary="0000000000002e589b057bcfa465"
X-Trace: blaine.gmane.org 1543506502 14419 195.159.176.226 (29 Nov 2018 15:48:22 GMT)
X-Complaints-To: usenet@blaine.gmane.org
NNTP-Posting-Date: Thu, 29 Nov 2018 15:48:22 +0000 (UTC)
To: std-proposals@isocpp.org
Original-X-From: std-proposals+bncBDKJJPVBQMKRBQ4VQDQAKGQEQBDW2XI@isocpp.org Thu Nov 29 16:48:18 2018
Return-path: <std-proposals+bncBDKJJPVBQMKRBQ4VQDQAKGQEQBDW2XI@isocpp.org>
Envelope-to: gclcip-std-proposals@m.gmane.org
Original-Received: from mail-wr1-f72.google.com ([209.85.221.72])
	by blaine.gmane.org with esmtp (Exim 4.84_2)
	(envelope-from <std-proposals+bncBDKJJPVBQMKRBQ4VQDQAKGQEQBDW2XI@isocpp.org>)
	id 1gSOY5-0003dV-ON
	for gclcip-std-proposals@m.gmane.org; Thu, 29 Nov 2018 16:48:17 +0100
Original-Received: by mail-wr1-f72.google.com with SMTP id h11sf1396957wrs.2
        for <gclcip-std-proposals@m.gmane.org>; Thu, 29 Nov 2018 07:50:28 -0800 (PST)
ARC-Seal: i=2; a=rsa-sha256; t=1543506628; cv=pass;
        d=google.com; s=arc-20160816;
        b=oZLYmTWPphBO5ShfaRCeX+EA9I67jwyVjh0VWMEb8XaG+2VTllQOw2POIM7DHh/v9/
         /F5KgIetu5g2MCDAGdR8XbpNXtLCufckvpy9e0idLZ7PcbLTmwe2gekb2ShaH2jM0RA6
         4Hv9C+xAxvoC5i4WsIhnw3gZ/fFRztc3dJaIc9NBHz/PlQc6QQ2reDYttwrfu1w2UJHD
         F4BB5vISohbuRQ25T4ukxZm6xvbILpJEAJP+ngoHIhwgI/gpeVXG/RyavQkMgz4VpwUo
         Uyk4K8+QA8xs8H65kN1abPMoYeWbfNJBw6QBKEQua5/IPCqHXdveap8EsamChnH4WzUZ
         ydlQ==
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:dkim-signature;
        bh=Ulot9HtPMgpQ1h2+Eywi3mW0Q5aaTdexrS2l1ypxSuI=;
        b=rHg25vGaigq3XJ053eHvKdu1Fi5dZgo4j3joheg6s2MfkNS7vatNmX+bjYeHmfEMqb
         vN6P3UkLqVzU7/kib0Md+OjG/CJl2gy84PwkqoCAnmuJYQ1VgE71UxgCCGsm+4LazsAF
         KQn/xwVLtuUxEHGjR5zmNoi8NzLg+fdYvluIqitQX+AI94U9Mbsn1O0xg2dC5UFyaYJB
         ux9QlOeeGryNpNIqliPjWUpsZTciJcvafR0Z5/plOCUVXpld6NmKcy4UbVCtpgWCzX2t
         fnSyRczjmCJ95qNLmJZQdzkbFexgyQlSclZ83pjtDAXZHGPXfcIJP0aizMt2qoAX6ySM
         UTpA==
ARC-Authentication-Results: i=2; mx.google.com;
       dkim=pass header.i=@gmail.com header.s=20161025 header.b=goVh2FAJ;
       spf=pass (google.com: domain of hyman.rosen@gmail.com designates 209.85.220.41 as permitted sender) smtp.mailfrom=hyman.rosen@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=Ulot9HtPMgpQ1h2+Eywi3mW0Q5aaTdexrS2l1ypxSuI=;
        b=q/6xAKmRSyPgmWGED8BgpXaLgtya2Y7ESQiqUGdkWmcjyi4xH3By1ihSb/wSeaWbJF
         brrwxJGBtTlbc5OtbQiVE81J97wchCeMRdXTGkMi2ahgsAn/bLzznUiYeixXDejQ8SBS
         dBNcIBlikLIlSfAGmpCYJDhY0T/3IsTwg+W1OXyJBwfmROQg2jfyb50GOwkNSTU24yMp
         HVwFWO8PtuSu3diDM7D5CLQZbk1v40AfAAzGChojKz4e8xmK3qpX59tZaOd4suNiVKs1
         tBeqjHBhg1UHWq4yJXuc8KCN466D5ahQYCb5EZK1d6svHgf0dtWPzxtlfWzv+l7gzJ1x
         babA==
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=Ulot9HtPMgpQ1h2+Eywi3mW0Q5aaTdexrS2l1ypxSuI=;
        b=XUL1XPjJCiLPeC3W8S0KbjD7O1lsB8MmudfXvOFSARVjIqJSTaJL631QXfQ6dueOsn
         ZLssQhr2+2XCaoQFuWsn+DaKmqSaexWDO5iaoHzizqh+vvJ5A5YxCOXOjY+F3eJ2fnAU
         bJBNDFx5rz5EpMtf/FmitY9zhbqMlnXxjeXfSKqoa6SSigTOVLYg9JQxbCsFUvQnVoxn
         6e3PFi1Lt7YuXrlA/x8LgeBLe6Jr6iEbJxmlAEcxwMHUNW7XblOHkt9CcmJJnz4GH4GR
         9+jLWS692FJ+sHrj1QH8egKQr6U/xkPakYqGwIUWXhEMzCt9/1rs9QbKxturca1/+YA4
         XjuA==
X-Gm-Message-State: AA+aEWaOdlNtopi4PsY7V8sQSgbeBMjvZDSQQiQDh8MQag19KCZ3i6eD
	X8OweYT1BPmqr0n1p6EEhcVrDw==
X-Google-Smtp-Source: AFSGD/Vf1YJZPF/pRN2B4pPQdGhX2rdO8DJMIwQjMY1d45EXfe8C8txtXLAOXwUKi5d8banfKtKyAg==
X-Received: by 2002:a7b:c0cd:: with SMTP id s13mr266788wmh.15.1543506628420;
        Thu, 29 Nov 2018 07:50:28 -0800 (PST)
X-BeenThere: std-proposals@isocpp.org
Original-Received: by 2002:a5d:5148:: with SMTP id u8ls563741wrt.17.gmail; Thu, 29 Nov
 2018 07:50:27 -0800 (PST)
X-Received: by 2002:a5d:65ce:: with SMTP id e14mr1852417wrw.150.1543506627229;
        Thu, 29 Nov 2018 07:50:27 -0800 (PST)
ARC-Seal: i=1; a=rsa-sha256; t=1543506627; cv=none;
        d=google.com; s=arc-20160816;
        b=ZdA9mKtHV/ffsOPPJr9GME0SP/aUako5R6FXNVKqppcZ+6eR05HyJpz6iYSoB7MLHk
         MvWsemoY8w68iHyvNLA4AoPGZQzCz0bTaRQaxbw5NFNqeLqVI1vygl99lK9xEijIcksS
         QjxyqaQpCQpgk87WfE6FdeJXopfmCJ5gKF5pnHOIKafQLyzTL+frQYaQXluTw43r667F
         t1Oj+rvVEeQV1F2d+leA5IgzZUWd49c4EEQprrVhHFfyJcRj3V84H0pPwsryV0y6rTYL
         ldbv+iCvp8c7ZQ2J/iPR8qAPC5pi9ZYQ8VB0KQjGN0dtg7ZPKnd1PavViuUJjhCyiORb
         ebIA==
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;
        bh=TtX99kn2EzmSNiU26trHAErradsQtqH39gx5l30EJwo=;
        b=oRyoyFOZxD+q0u/Rrt69aUE1IYMQGqmGCJjZhoUNUC+S8HuYyF+1Z3tkBOvISkfS12
         saTTkkZ+e00fCZGRTYenHNEtH87NeVoYt2dbzqlSsk3SwIwkoCPyLh83B7b40pWTX+gq
         ixT0JHrpQUtLe8uQL67MO6C19GuofTQtWZRGNHQKgkS8LkH4HFVf99IAPdSh8IDvS4vx
         uDO3i5ekdModt+7gH35aF1ksGA68mQKAtgNwEcOHiksWyB0ZrjbmkCbI3j3zjunqaDyb
         cJGpO0AuKyyao+PrrLXcQSJssEayk4fcDp3eWSrdqoUfJGZraTuO+rgujmBl7CjYbS0X
         HAtA==
ARC-Authentication-Results: i=1; mx.google.com;
       dkim=pass header.i=@gmail.com header.s=20161025 header.b=goVh2FAJ;
       spf=pass (google.com: domain of hyman.rosen@gmail.com designates 209.85.220.41 as permitted sender) smtp.mailfrom=hyman.rosen@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 t141sor1861154wme.23.2018.11.29.07.50.27
        for <std-proposals@isocpp.org>
        (Google Transport Security);
        Thu, 29 Nov 2018 07:50:27 -0800 (PST)
Received-SPF: pass (google.com: domain of hyman.rosen@gmail.com designates 209.85.220.41 as permitted sender) client-ip=209.85.220.41;
X-Received: by 2002:a7b:c44d:: with SMTP id l13mr2276703wmi.144.1543506626499;
 Thu, 29 Nov 2018 07:50:26 -0800 (PST)
In-Reply-To: <CAB+4KHLe6zDPRreF2q0zQptUgrO0-_u8VrAOA7Du+_KHxhGUnw@mail.gmail.com>
X-Original-Sender: hyman.rosen@gmail.com
X-Original-Authentication-Results: mx.google.com;       dkim=pass
 header.i=@gmail.com header.s=20161025 header.b=goVh2FAJ;       spf=pass
 (google.com: domain of hyman.rosen@gmail.com designates 209.85.220.41 as
 permitted sender) smtp.mailfrom=hyman.rosen@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:41131
Archived-At: <http://permalink.gmane.org/gmane.comp.lang.c++.isocpp.proposals/41131>

--0000000000002e589b057bcfa465
Content-Type: text/plain; charset="UTF-8"

On Wed, Nov 28, 2018 at 11:58 PM Andrew Tomazos <andrewtomazos@gmail.com>
wrote:

> It seems to me that a function that takes a struct combined with C++20
>
designated initializers gets us very close to named parameters
> This also seems easy to implement.
> Thoughts?  Worth pursuing?
>

I think named argument association should be sui generis, not implemented
by weird class equivalents.  Doing the latter hearkens back to the days of
OO,
where everything was defined in terms of virtual functions.  We should
define
the behavior we want, not try for an equivalence that may or may not have
dark
corners that don't quite match.

-- 
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/CAHSYqdZOye%3DG4N4aVcQj7P2GoJVgEbXcrDCtCSW5uCxDnq4%2BZQ%40mail.gmail.com.

--0000000000002e589b057bcfa465
Content-Type: text/html; charset="UTF-8"
Content-Transfer-Encoding: quoted-printable

<div dir=3D"ltr"><div class=3D"gmail_quote"><div dir=3D"ltr">On Wed, Nov 28=
, 2018 at 11:58 PM Andrew Tomazos &lt;<a href=3D"mailto:andrewtomazos@gmail=
..com">andrewtomazos@gmail.com</a>&gt; wrote:<br></div><blockquote class=3D"=
gmail_quote" style=3D"margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-=
left:1ex"><div dir=3D"ltr">It seems to me that a function that takes a stru=
ct combined with C++20</div></blockquote><blockquote class=3D"gmail_quote" =
style=3D"margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><di=
v dir=3D"ltr">designated initializers gets us very close to named parameter=
s<div>This also seems easy to implement.</div><div>Thoughts?=C2=A0 Worth pu=
rsuing?</div></div></blockquote><div><br></div><div>I think named argument =
association should be sui generis, not implemented<br>by weird class equiva=
lents.=C2=A0 Doing the latter hearkens back to the days of OO,<br>where eve=
rything was defined in terms of virtual functions.=C2=A0 We should define<b=
r>the behavior we want, not try for an equivalence that may or may not have=
 dark<br>corners that don&#39;t quite match.</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/CAHSYqdZOye%3DG4N4aVcQj7P2GoJVgEbXcrD=
CtCSW5uCxDnq4%2BZQ%40mail.gmail.com?utm_medium=3Demail&utm_source=3Dfooter"=
>https://groups.google.com/a/isocpp.org/d/msgid/std-proposals/CAHSYqdZOye%3=
DG4N4aVcQj7P2GoJVgEbXcrDCtCSW5uCxDnq4%2BZQ%40mail.gmail.com</a>.<br />

--0000000000002e589b057bcfa465--

.
