220 40094 <7eb6c94c-2753-3dba-866d-5603bce7026e@gmail.com> article
Path: news.gmane.org!.POSTED!not-for-mail
From: Matthew Woehlke <mwoehlke.floss@gmail.com>
Newsgroups: gmane.comp.lang.c++.isocpp.proposals
Subject: Re: Named Parameters for C++
Date: Wed, 29 Aug 2018 16:35:16 -0400
Lines: 23
Approved: news@gmane.org
Message-ID: <7eb6c94c-2753-3dba-866d-5603bce7026e@gmail.com>
References: <CAPuuy5eBx1ybcPjS6dNsk7n1_c2uhdRBS19qr=q5cj3cTURnLQ@mail.gmail.com>
 <0341abf7-070d-4dd6-88d3-b7072b991cd4@isocpp.org>
 <0fe2a8da-3442-edbe-7bdf-40d6b1c90d1b@gmail.com>
 <28f2a655-1a1b-4386-9f76-c16ddb1647e6@isocpp.org>
 <4f02dc49-5945-f245-c7ca-76d2d9ab83be@gmail.com>
 <CAHSYqdZNa3yrksCsijCpiv0tw6O=W__m-9kZ_QHPiSGOLcjwHg@mail.gmail.com>
 <ec9484c9-6fbc-c0c2-37ec-7043fcd80de6@gmail.com>
 <CAHSYqdYwo=fUOvoYfvmh59X0QXxjwwrLV44UU4UPvKk3A63fFw@mail.gmail.com>
 <8693c5c4-d544-1ee0-ae12-b3c2f5c1537f@gmail.com>
 <CAC+0CCNoq-B0fCH2rCiduFmoKkt7U4b_gLH3NatY7d=wv-n1HQ@mail.gmail.com>
 <CAHSYqdbVWEP_Mc85MGDUyxwBsVJVjSLVFbmBWGEpX811c55Zkg@mail.gmail.com>
 <CAC+0CCMrr0CFYhT-Uddxqffb9wYBPVftUfk_pAg1Jj2taWb=+A@mail.gmail.com>
 <CAHSYqdb8nsMAvZAXZbofixfwsWausy_sKgENgXJofyde80=86A@mail.gmail.com>
 <CAC+0CCPpyfJEj_kHyNFGG0Q17BfGPyAtL23PrujdmKe5y-3vJA@mail.gmail.com>
 <735cf8f8-41e8-49b3-9dec-1ff47e2a47f8@isocpp.org>
 <CAC+0CCMDr36nEe8d8E0G7PvnZmY_JxR+nN6aUS1xbuf4sY9ZWA@mail.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"
X-Trace: blaine.gmane.org 1535574797 20017 195.159.176.226 (29 Aug 2018 20:33:17 GMT)
X-Complaints-To: usenet@blaine.gmane.org
NNTP-Posting-Date: Wed, 29 Aug 2018 20:33:17 +0000 (UTC)
User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:52.0) Gecko/20100101
 Thunderbird/52.9.1
To: std-proposals@isocpp.org, Jake Arkinstall <jake.arkinstall@gmail.com>
Original-X-From: std-proposals+bncBC37LBFWUIFBBBUHTTOAKGQELLGNLDQ@isocpp.org Wed Aug 29 22:33:13 2018
Return-path: <std-proposals+bncBC37LBFWUIFBBBUHTTOAKGQELLGNLDQ@isocpp.org>
Envelope-to: gclcip-std-proposals@m.gmane.org
Original-Received: from mail-qk0-f197.google.com ([209.85.220.197])
	by blaine.gmane.org with esmtp (Exim 4.84_2)
	(envelope-from <std-proposals+bncBC37LBFWUIFBBBUHTTOAKGQELLGNLDQ@isocpp.org>)
	id 1fv79J-0004zQ-99
	for gclcip-std-proposals@m.gmane.org; Wed, 29 Aug 2018 22:33:09 +0200
Original-Received: by mail-qk0-f197.google.com with SMTP id a70-v6sf5508944qkb.16
        for <gclcip-std-proposals@m.gmane.org>; Wed, 29 Aug 2018 13:35:20 -0700 (PDT)
ARC-Seal: i=2; a=rsa-sha256; t=1535574919; cv=pass;
        d=google.com; s=arc-20160816;
        b=MLQzDT3wsleDi4hd74iPiVpfAKB3C77M0MY+P618lHq6Zi9P1OvLafH827IOjPJeWN
         zSuPBKRaRPAWNwe2UmHO1EvEDvsAySs1uSqNu5sb4cbAkxHZaeG5xsBYHQKG1LlsNUnc
         B1wtaXpuekjtG0EztWByo3xDPvkItsWNvIAw69/WJWLqkNNQkL5K+yjr6dri/gALKaL1
         eWiOarM8Fvybp1ut7YLQ8a+fm9XDk8HSMMJn+W7aqdwRoCkf1Hb+i08taFLth0+166Wj
         up+XamqcHau5up2NuYSU02IV0jD5qx81NKLiEFOZa3poEv/uOOU518Iw2O1IdZo2D1dV
         TIdA==
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-language
         :in-reply-to:mime-version:user-agent:date:message-id:openpgp:from
         :references:to:subject:arc-authentication-results
         :arc-message-signature:dkim-signature:arc-authentication-results;
        bh=GZl688qrOLRP2z9mpdr32X/8mXbhQEC9Gjff/MI3LmE=;
        b=QBv5M4bFe+fODITKJP4SZonvU6jviqxGdqQrmhd8fA1rrqekYHk/qJWGTjUScNF/XU
         dO3eYZEt9sjddqxFhmqkSjz9jBOtiTuD4fkMiFVFbZp1E/IYkQFG/Ammi1HM761xDTLP
         IxBtKMcK3Zp1vA0neLkMbhqWz6+32myEGJWL2RWFOaNrj+2a+i9i83aBbVhrQxdZiXDP
         dp/XorSHS14V7ZNsLYYuvPUuc0LvGA1RRkPHMI711D55AjM4Xo/jDh+1Ohk8IKVG1SB5
         4H199Wr6615izt9lfyYWROvVsWGdfeGHRxfOc0Du5VOyX+NZLHkaAc3XM+jJTNbgiu8B
         +R 
ARC-Authentication-Results: i=2; mx.google.com;
       dkim=pass header.i=@gmail.com header.s=20161025 header.b=RGkDIh2V;
       spf=pass (google.com: domain of mwoehlke.floss@gmail.com designates 209.85.220.41 as permitted sender) smtp.mailfrom=mwoehlke.floss@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=subject:to:references:from:openpgp:message-id:date:user-agent
         :mime-version:in-reply-to:content-language: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=GZl688qrOLRP2z9mpdr32X/8mXbhQEC9Gjff/MI3LmE=;
        b=KD/Xg+ApymtlbZE4siQUnVnBT/r+3NWTEdl+3bgl8ZjFEp6gC9eIe8DV4/2KzWf2im
         CiafyIxN986ChwQfzfahlTrW9JgngNpKLUQSKzzw9x0Be13WGw1BpTk9/LQwraVDUJ0i
         1GDxM3RaGUTSW8jmlHUpqaQOQ+8jC5OQpY3INWyK2zl9uDflI8RBmcVIvZWKYv3dccBz
         PjQjlVBhgqoxsQBKFEJjgASdwXjYLNwTvjKlrhhDdlkREqWex80J9KYnTP7SnjnDVaOq
         8AqC6RNjJLrCBJp0Lm0o0B3Q95hkCgfB6pPpLho61MKIi8K6lwGjUfwe4uchTttKNc3B
         ZQVw==
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:openpgp:message-id
         :date:user-agent:mime-version:in-reply-to:content-language
         :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=GZl688qrOLRP2z9mpdr32X/8mXbhQEC9Gjff/MI3LmE=;
        b=Ki3SRkpQ4PxD/6OwvZ1pEnPAmffbtDdJhM6Nu0+IdOkm1RibwovZqoxbhljZz7NAGz
         QMAFpoI0gGUfw3egxcf63W9OQlAwdJsAs/J0hVDZIDWUbdqVAUJUzqSxOsD1j2J2HhFq
         PBoVvhUmAPiWZ1P8eD0c20oKHm6iIBE0p5e8vQPEA4WxyV/dvsee/XMOkhq/4MjOXnNu
         KVrBp6ffWqZ2YfYbj/hMHA+gPcT7pb0WdkxoDFC+9t8OEWRVw6TBt+oe2Ozlru2hWdiW
         wc+2ImCQSovVYAW1+JGT+APPdXiiWyJMlTQq/4jziiV2LUOFMeYhEmY3k2Dg+L6etz06
   
X-Gm-Message-State: APzg51AScKus6u7UOPNPKLTW5E2g1/a3VFE4q7R8jXHMVjCQ43a9s8J4
	oCRf/EI5ciXdh1GtBrbANQWWVg==
X-Google-Smtp-Source: ANB0Vda8IvT0SquImOrT+BltbTCQDDkk7FI6vyWeWfpUjrKPZnaEwpch8nuIiJ7FTye3SCfCqsRRYQ==
X-Received: by 2002:a37:b2c4:: with SMTP id b187-v6mr4369447qkf.19.1535574919510;
        Wed, 29 Aug 2018 13:35:19 -0700 (PDT)
X-BeenThere: std-proposals@isocpp.org
Original-Received: by 2002:a0c:9aea:: with SMTP id k42-v6ls2516494qvf.12.gmail; Wed, 29
 Aug 2018 13:35:18 -0700 (PDT)
X-Received: by 2002:a0c:b310:: with SMTP id s16-v6mr8134620qve.243.1535574918399;
        Wed, 29 Aug 2018 13:35:18 -0700 (PDT)
ARC-Seal: i=1; a=rsa-sha256; t=1535574918; cv=none;
        d=google.com; s=arc-20160816;
        b=EMbXHuqIiUC8vqQJ8HcYkY4scsZ4xRMWXEeqb7/cNZDcK+uWHCqwp4pVjOf39Y4q0s
         3x1K2giDAzRGBbArSp4nyDJCv7gv1P0+XH2Lh3HZg9p1XzGP1RbazehS8Wgtg1lGLEvd
         1Izwze9VI2Ax8NA38FAmdwupZ8jztk6Om7KejKUbD2sGzzgTVZd62lVcGrp4Am3CG8h9
         ox5mfI4yO5CcnzE2A8FDo2mfxOqgE3fvIOKkXlvpunGW4v4cOKokW45OEQR/wG89dHAI
         RdBLUrn2S417g0/HCNcQvnNVW4l33cK7lZXW5VUdwyf/MFioWJcM8GVM4ktrwVq6kflL
         e8HQ==
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:openpgp:from:references:to:subject
         :dkim-signature:arc-authentication-results;
        bh=KvrD6Ne1/do0lJCH1flukGxl/enb2E4DCwmf41ckTjE=;
        b=fMpgsng6zS3vEJkZMLDdnSc3SLgKlm8s4iVIGaTu43x/AcxcaIj8IcQDQ2uiDDvg4m
         rrhjRQphYL4Y8FCtEDtLLFN669t3ymCcud81nHyt3WEHtBlHCPB8JlddlrVQ5cz26Srj
         Z12rurKBc/VCYYpSTLstIc3giWpsNZKiEc1SBZbRS4I+dIJrgvTeXv1u3JtuLRZQ/m0E
         ADWf2QLJgAqACsy/dkHN5XIqTv1V4lQfO270tBCzlVJOc3DRiWtRO0HePisZLLkogpmP
         Y/uYjLXMuIaP3lWz3F59LsV/DE4swPEllKmVOtCy69OCk2aABRMWO2KUEiTYYyAADalY
         HMPg==
ARC-Authentication-Results: i=1; mx.google.com;
       dkim=pass header.i=@gmail.com header.s=20161025 header.b=RGkDIh2V;
       spf=pass (google.com: domain of mwoehlke.floss@gmail.com designates 209.85.220.41 as permitted sender) smtp.mailfrom=mwoehlke.floss@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 z46-v6sor2540650qve.42.2018.08.29.13.35.18
        for <std-proposals@isocpp.org>
        (Google Transport Security);
        Wed, 29 Aug 2018 13:35:18 -0700 (PDT)
Received-SPF: pass (google.com: domain of mwoehlke.floss@gmail.com designates 209.85.220.41 as permitted sender) client-ip=209.85.220.41;
X-Received: by 2002:a0c:b217:: with SMTP id x23-v6mr8252598qvd.220.1535574918203;
        Wed, 29 Aug 2018 13:35:18 -0700 (PDT)
Original-Received: from gryphon.kitware.com (tripoint.kitware.com. [66.194.253.20])
        by smtp.googlemail.com with ESMTPSA id p23-v6sm3292195qtf.6.2018.08.29.13.35.16
        (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128);
        Wed, 29 Aug 2018 13:35:17 -0700 (PDT)
Openpgp: preference=signencrypt
In-Reply-To: <CAC+0CCMDr36nEe8d8E0G7PvnZmY_JxR+nN6aUS1xbuf4sY9ZWA@mail.gmail.com>
Content-Language: en-US
X-Original-Sender: mwoehlke.floss@gmail.com
X-Original-Authentication-Results: mx.google.com;       dkim=pass
 header.i=@gmail.com header.s=20161025 header.b=RGkDIh2V;       spf=pass
 (google.com: domain of mwoehlke.floss@gmail.com designates 209.85.220.41 as
 permitted sender) smtp.mailfrom=mwoehlke.floss@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:40094
Archived-At: <http://permalink.gmane.org/gmane.comp.lang.c++.isocpp.proposals/40094>

On 2018-08-29 16:08, Jake Arkinstall wrote:
> In terms of getting reorderable parameters, that requires a change to
> designated initializers, which don't currently accept arguments in an order
> other than the declaration (I don't see why not. C allows it.)

  struct foo { int a, b; }
  int x = 1;
  auto y = foo{.b = ++x, .a = ++y};

Is y.a 2 or 3? Keep in mind that y.a was initialized before y.b. (Hmm,
actually considering that we allow reordering parameters, it is sort of
interesting that we don't allow the compiler to rewrite the above as
`{.a = ++x, .b = ++x}`.)

-- 
Matthew

-- 
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/7eb6c94c-2753-3dba-866d-5603bce7026e%40gmail.com.

.
