Newsgroups: php.internals Path: news.php.net Xref: news.php.net php.internals:114815 Return-Path: Delivered-To: mailing list internals@lists.php.net Received: (qmail 98228 invoked from network); 10 Jun 2021 14:38:32 -0000 Received: from unknown (HELO php-smtp4.php.net) (45.112.84.5) by pb1.pair.com with SMTP; 10 Jun 2021 14:38:32 -0000 Received: from php-smtp4.php.net (localhost [127.0.0.1]) by php-smtp4.php.net (Postfix) with ESMTP id 0E68E1804C9 for ; Thu, 10 Jun 2021 07:53:50 -0700 (PDT) X-Spam-Checker-Version: SpamAssassin 3.4.2 (2018-09-13) on php-smtp4.php.net X-Spam-Level: X-Spam-Status: No, score=-2.6 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,RCVD_IN_DNSWL_LOW,RCVD_IN_MSPIKE_H3,RCVD_IN_MSPIKE_WL, SPF_HELO_PASS,SPF_NONE autolearn=no autolearn_force=no version=3.4.2 X-Spam-Virus: No X-Envelope-From: Received: from out1-smtp.messagingengine.com (out1-smtp.messagingengine.com [66.111.4.25]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange ECDHE (P-256) server-signature RSA-PSS (4096 bits)) (No client certificate requested) by php-smtp4.php.net (Postfix) with ESMTPS for ; Thu, 10 Jun 2021 07:53:49 -0700 (PDT) Received: from compute3.internal (compute3.nyi.internal [10.202.2.43]) by mailout.nyi.internal (Postfix) with ESMTP id 2640B5C0232 for ; Thu, 10 Jun 2021 10:53:49 -0400 (EDT) Received: from imap8 ([10.202.2.58]) by compute3.internal (MEProxy); Thu, 10 Jun 2021 10:53:49 -0400 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d= messagingengine.com; h=content-type:date:from:in-reply-to :message-id:mime-version:references:subject:to:x-me-proxy :x-me-proxy:x-me-sender:x-me-sender:x-sasl-enc; s=fm3; bh=ZYGq6m husGPTl3w+zZLMmt/ab6qQVv6i1xV69f4YovI=; b=t2jefXLOF81uf2f8d89fOQ 7xF5Aog99dUMSucuP4D9wXvimZZsoYq4mWyn+Hnd4ypbu6e8l9yiqChwBm2PjFRU fFaLw6D8xrnesIUh1lI+aLLdJhmmgS0+Wbzevy9jD+ww+WDQnzhsHdSvBMbC/mn9 kaSED6zwjT1JQec0qIUL8rgjbbKbOZtzaURJoF6zn9QYJgQp+XWCor1Zw0m4GSVO ri4bJZOM2tsh9hcdMcBjaYpwb3/NylCFI4Iknstb3bKt1ere4LCkfV7qEv8FGSD6 PvRJ5fIYY1Spo9NTjd9vGF7JiseKvxoz+T7TuaShwKJ8+Hw95GyPRxPMoVwB1+CA == X-ME-Sender: X-ME-Proxy-Cause: gggruggvucftvghtrhhoucdtuddrgeduledrfedufedgkeduucetufdoteggodetrfdotf fvucfrrhhofhhilhgvmecuhfgrshhtofgrihhlpdfqfgfvpdfurfetoffkrfgpnffqhgen uceurghilhhouhhtmecufedttdenucesvcftvggtihhpihgvnhhtshculddquddttddmne cujfgurhepofgfggfkjghffffhvffutgesthdtredtreertdenucfhrhhomhepfdfnrghr rhihucfirghrfhhivghlugdfuceolhgrrhhrhiesghgrrhhfihgvlhguthgvtghhrdgtoh hmqeenucggtffrrghtthgvrhhnpeekteelheffgeefvddufeeujeekhfdvtdeuuedvveet ieevheeludegjeduhffhteenucffohhmrghinhepghhithhhuhgsrdgtohhmnecuvehluh hsthgvrhfuihiivgeptdenucfrrghrrghmpehmrghilhhfrhhomheplhgrrhhrhiesghgr rhhfihgvlhguthgvtghhrdgtohhm X-ME-Proxy: Received: by mailuser.nyi.internal (Postfix, from userid 501) id D0FF13A086A; Thu, 10 Jun 2021 10:53:48 -0400 (EDT) X-Mailer: MessagingEngine.com Webmail Interface User-Agent: Cyrus-JMAP/3.5.0-alpha0-519-g27a961944e-fm-20210531.001-g27a96194 Mime-Version: 1.0 Message-ID: In-Reply-To: References: Date: Thu, 10 Jun 2021 09:53:28 -0500 To: "php internals" Content-Type: text/plain Subject: Re: [PHP-DEV] Re: Allow combining arg unpacking and named args From: larry@garfieldtech.com ("Larry Garfield") On Thu, Jun 10, 2021, at 8:14 AM, Nikita Popov wrote: > On Tue, May 25, 2021 at 4:18 PM Nikita Popov wrote: > > > Hi internals, > > > > Currently, argument unpacking (...$foo) cannot be combined with named > > arguments (foo: $bar) at all. Both func(...$args, x: $y) and func(x: $y, > > ...$args) are rejected by the compiler. > > > > https://github.com/php/php-src/pull/7009 relaxes this by allowing > > func(...$args, x: $y). The named arguments are required to come last, > > because this automatically enforces the invariant that named arguments must > > be sorted after positional argument. > > > > Are there any concerns with relaxing this restriction? > > > > Any further feedback on this? > > Nikita I guess no one has concerns. I'm fine with it. --Larry Garfield