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.7 required=3.0 tests=AWL,BAYES_00,DKIM_INVALID, DKIM_SIGNED,MAILING_LIST_MULTI,RCVD_IN_DNSWL_HI,SPF_HELO_PASS,SPF_PASS, UNPARSEABLE_RELAY shortcircuit=no autolearn=ham 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) server-digest SHA256) (No client certificate requested) by dcvr.yhbt.net (Postfix) with ESMTPS id 891581F601 for ; Sun, 4 Dec 2022 18:05:05 +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="Q0tbhyb5"; dkim-atps=neutral Received: from nue.mailmanlists.eu (localhost [127.0.0.1]) by nue.mailmanlists.eu (Postfix) with ESMTP id 6309B7E7B8; Sun, 4 Dec 2022 18:04:50 +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=Q0tbhyb5; dkim-atps=neutral Received: from xtrwkhkc.outbound-mail.sendgrid.net (xtrwkhkc.outbound-mail.sendgrid.net [167.89.16.28]) by nue.mailmanlists.eu (Postfix) with ESMTPS id D85D37E7AB for ; Sun, 4 Dec 2022 18:04:43 +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=vI9J9/3TdGpq9M+H2VZbH2VsaHMpRNJ/7dn5M2S0rgk=; b=Q0tbhyb52Dn8rjVDj2gQzrxHmJERjR9kOD3QfE49fR8tq5kdZ7hAQ8CrxQkWCDbhCbq1 1nbL9rUHQh1IVNRKgxmI+o8DXMwkZfGAzt2s8GbBHcyJEaJ1DFlgzGoOM+3ejMvkTK9dDl kyZ9Xw+I8Mt/vN2EDGRTD0LsRLK2RqCr4Z08bF5YRCJKgMSnvHsNr44Yoi53Mo4uBiSKNf 2H7NxuFmNwiechFPpBKbBdsBy9gt4nHUySaImTkeyCOMdjYOZ2VMn5qT4gL6A/jFT60hTe HfhQkhkAZBZHuGjIcUn33WjKlY0rJjZQP8OCe4vkvKF5kRiCVJ/YscCI9T3yehkw== Received: by filterdrecv-557d69979-xf95q with SMTP id filterdrecv-557d69979-xf95q-1-638CE13A-D 2022-12-04 18:04:42.210705262 +0000 UTC m=+1450750.290860144 Received: from herokuapp.com (unknown) by geopod-ismtpd-5-2 (SG) with ESMTP id MWy8e2idSTiId0sSytzPsA for ; Sun, 04 Dec 2022 18:04:42.046 +0000 (UTC) Date: Sun, 04 Dec 2022 18:04:42 +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: 87553 X-SG-EID: =?us-ascii?Q?DvL3W2Xo+Vk=2FeUn3F50L=2FNc8u9NqZCnbE0mXZHiyye4R1YZg=2FtAFc0SAFzpcS=2F?= =?us-ascii?Q?Zcr7BqPN=2FYCcMZBMITNeIci9STxYay0JAJWPbek?= =?us-ascii?Q?rFR+qV6zpnbQPPuwg9Ol4CS3TwHD205VvT5Sjmx?= =?us-ascii?Q?D7G3B3WA1Wmuj3ugPqB8TRwrHtxEg24Mb4BbrLe?= =?us-ascii?Q?tt3bKaccdEd8uk90zTyxh176DtgWnpNSUFRev7H?= =?us-ascii?Q?aebR6w86mr2+0CziR3m7MEy9fxOO99uvxUNNTOO?= =?us-ascii?Q?bE2gv3pJxr7KoHglOCcJA=3D=3D?= To: ruby-dev@ml.ruby-lang.org X-Entity-ID: b/2+PoftWZ6GuOu3b0IycA== Message-ID-Hash: QR3HJEKNCKBGGLMFS6BDRLXBO4P4ILUZ X-Message-ID-Hash: QR3HJEKNCKBGGLMFS6BDRLXBO4P4ILUZ 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=3A52009=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). IMHO if `...` is used then `*`, `**` and `&` should all be forbidden (a SyntaxError at parse time). Because that way is the best for optimizing delegation. And also taking apart `*` and `**` is arguably not really delegation anymore. ---------------------------------------- Feature #19134: ** is not allowed in def foo(...) https://bugs.ruby-lang.org/issues/19134#change-100486 * Author: shugo (Shugo Maeda) * Status: Closed * Priority: Normal * Assignee: matz (Yukihiro Matsumoto) ---------------------------------------- `*` 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/