From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.2 (2018-09-13) on dcvr.yhbt.net X-Spam-Level: X-Spam-ASN: AS24940 94.130.0.0/16 X-Spam-Status: No, score=-3.0 required=3.0 tests=AWL,BAYES_00,DKIM_INVALID, DKIM_SIGNED,MAILING_LIST_MULTI,RCVD_IN_BL_SPAMCOP_NET,RCVD_IN_DNSWL_HI, SPF_HELO_PASS,SPF_PASS,UNPARSEABLE_RELAY shortcircuit=no autolearn=no autolearn_force=no version=3.4.2 Received: from nue.mailmanlists.eu (nue.mailmanlists.eu [94.130.110.93]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits)) (No client certificate requested) by dcvr.yhbt.net (Postfix) with ESMTPS id 163DB1F61A for ; Mon, 12 Dec 2022 14:05:14 +0000 (UTC) Authentication-Results: dcvr.yhbt.net; dkim=fail reason="signature verification failed" (2048-bit key; unprotected) header.d=ruby-lang.org header.i=@ruby-lang.org header.b="C8vXzRqF"; dkim-atps=neutral Received: from nue.mailmanlists.eu (localhost [127.0.0.1]) by nue.mailmanlists.eu (Postfix) with ESMTP id F0A447E660; Mon, 12 Dec 2022 14:04:59 +0000 (UTC) Authentication-Results: nue.mailmanlists.eu; dkim=fail reason="signature verification failed" (2048-bit key; unprotected) header.d=ruby-lang.org header.i=@ruby-lang.org header.a=rsa-sha256 header.s=s1 header.b=C8vXzRqF; dkim-atps=neutral Received: from o1678948x4.outbound-mail.sendgrid.net (o1678948x4.outbound-mail.sendgrid.net [167.89.48.4]) by nue.mailmanlists.eu (Postfix) with ESMTPS id 266217E5EE for ; Mon, 12 Dec 2022 14:04:54 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=ruby-lang.org; h=from:references:subject:mime-version:content-type: content-transfer-encoding:list-id:to:cc:content-type:from:subject:to; s=s1; bh=u/GhEar7EHqzR2ySJ2pEe3yNtEfroCcD7VtS4KSYIbI=; b=C8vXzRqF559JBA7coqkTCOOzMWm+uV6L+nJUvqz6rI6K+qZLaioGLyqkz1jPYwv0bprN FODkSOodTSkJ/XZoCfT3yhIfh1gTb/LvIBQ47T0/BQAz0CaksqFOjVr2GVazvaBNNSBxrd 8IaCcNSx7i4zaEFd56lAXM91TbCng4LcRtl4M9IIfwrkgGszsJf8/UDOn9lnlj/rtZTce4 SzPTxGJo3nfjzmmrG4/eK+ahKO2vO7dGMitKxcuWLTgODe5rzE4LpgQRH+cmbDDDNgSUZW rI6mffBI4+72R0Fb7kpPPZkfRhuvV83nEcPnR1ggUkHvaoysHGH8hVb6cUW4L/RA== Received: by filterdrecv-69c5db5cf4-w69gb with SMTP id filterdrecv-69c5db5cf4-w69gb-1-63973504-C7 2022-12-12 14:04:52.727028147 +0000 UTC m=+2127407.185292067 Received: from herokuapp.com (unknown) by geopod-ismtpd-5-1 (SG) with ESMTP id qmnhAfpwRSSzHO0HBS8Umg for ; Mon, 12 Dec 2022 14:04:52.625 +0000 (UTC) Date: Mon, 12 Dec 2022 14:04:52 +0000 (UTC) From: "Eregon (Benoit Daloze)" Message-ID: References: Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit X-Redmine-Project: ruby-master X-Redmine-Issue-Tracker: Feature X-Redmine-Issue-Id: 19134 X-Redmine-Issue-Author: shugo X-Redmine-Issue-Assignee: matz X-Redmine-Sender: Eregon X-Mailer: Redmine X-Redmine-Host: bugs.ruby-lang.org X-Redmine-Site: Ruby Issue Tracking System X-Auto-Response-Suppress: All Auto-Submitted: auto-generated X-Redmine-MailingListIntegration-Message-Ids: 87626 X-SG-EID: =?us-ascii?Q?DvL3W2Xo+Vk=2FeUn3F50L=2FNc8u9NqZCnbE0mXZHiyye4R1YZg=2FtAFc0SAFzpcS=2F?= =?us-ascii?Q?Zcr7BqPN=2FYCcMZBMITNeIci9STxYay0JAJWPbek?= =?us-ascii?Q?rFR+qUSMqUniSUh05WFc1qrQGshjmTrHO1kdDRw?= =?us-ascii?Q?kV88Ge+pZjPOPGyAQSfS4W+ucqk+J6LR+mhZxVq?= =?us-ascii?Q?mrHHAQEMRJs3pLd3EDLpu+rewBQS8GmtR7dWkI4?= =?us-ascii?Q?27Dwt5deRUQaIbeoogwGKS0Cnmbmm93c8uxrwin?= =?us-ascii?Q?t75oLjUJqXGhzcuH3UJow=3D=3D?= To: ruby-dev@ml.ruby-lang.org X-Entity-ID: b/2+PoftWZ6GuOu3b0IycA== Message-ID-Hash: LL6K3XENBQUKPGTDSI6ANB4TLMXJTX7F X-Message-ID-Hash: LL6K3XENBQUKPGTDSI6ANB4TLMXJTX7F X-MailFrom: bounces+313651-12dc-ruby-dev=ml.ruby-lang.org@em5188.ruby-lang.org X-Mailman-Rule-Misses: dmarc-mitigation; no-senders; approved; emergency; loop; banned-address; member-moderation; nonmember-moderation; administrivia; implicit-dest; max-recipients; max-size; news-moderation; no-subject; digests; suspicious-header X-Mailman-Version: 3.3.3 Precedence: list Reply-To: "Ruby developers (Japanese)" Subject: =?utf-8?q?=5Bruby-dev=3A52021=5D_?= [Ruby master Feature#19134] ** is not allowed in def foo(...) List-Id: "Ruby developers (Japanese)" Archived-At: List-Archive: List-Help: List-Owner: List-Post: List-Subscribe: List-Unsubscribe: Issue #19134 has been updated by Eregon (Benoit Daloze). shugo (Shugo Maeda) wrote in #note-8: > `&` is allowed in 3.1, so it's a breaking change to prohibit it. Right and `&` is not problematic re performance, it's a completely separate argument anyway. I agree with your proposal in your comment just above this one. ---------------------------------------- Feature #19134: ** is not allowed in def foo(...) https://bugs.ruby-lang.org/issues/19134#change-100573 * Author: shugo (Shugo Maeda) * Status: Open * Priority: Normal * Assignee: matz (Yukihiro Matsumoto) * Target version: 3.2 ---------------------------------------- `*` and `&` are allowed in the body of a method with `...` argument forwarding, but `**` is not allowed. ``` def foo(...) bar(*) # OK baz(&) # OK quux(**) # NG end ``` Is it intended behavior? It seems that parse.y has code like `#ifdef RUBY3_KEYWORDS`, and if RUBY3_KEYWORDS, `**` will also be supported. -- https://bugs.ruby-lang.org/