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)) (No client certificate requested) by dcvr.yhbt.net (Postfix) with ESMTPS id 824E81F601 for ; Sun, 4 Dec 2022 18:08:51 +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="sVk/UReJ"; dkim-atps=neutral Received: from nue.mailmanlists.eu (localhost [127.0.0.1]) by nue.mailmanlists.eu (Postfix) with ESMTP id 2302D7E7DD; Sun, 4 Dec 2022 18:08:40 +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=sVk/UReJ; 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 271437E7A8 for ; Sun, 4 Dec 2022 18:08:34 +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=ceTk1D6U9R+6XUrcLoxzPXaF/EPXoShGRpEzwfXvOjE=; b=sVk/UReJ407Nv6TvEUyLhncHjFhA41oyAgRGf+N1jjnwslqOkbRBDDirO0QADD8L+L0J goKTpw56jTW+8VF+S7Osx49vRD2m5WtV2LSxPMoxLIEU4ERCK83MfcF6VsEs6dBYYzADzQ VqDM5F38gfH4Od+CSx3vXhCtmLRqN7HbVDy1eL1jXAQjj4V5bXRVzvsC/5hJxXTk0Fv6K8 7jB5IuwTcIT4PWXnazl+lWT/zXK7T6N6TUW+R8fGLN+E1c+rxJPtw+/aOfSBMi2RrHzxgq 2QnK1bGGtZtTynDFp8yPnUxRBB1diHqHOw0OjequV/6J+A88ZzDIsHu9kLVxE7QA== Received: by filterdrecv-69c5db5cf4-5fd48 with SMTP id filterdrecv-69c5db5cf4-5fd48-1-638CE220-6 2022-12-04 18:08:32.354356202 +0000 UTC m=+1450827.601716261 Received: from herokuapp.com (unknown) by geopod-ismtpd-3-4 (SG) with ESMTP id rUT9CgVqSmObH-HfOQgTvg for ; Sun, 04 Dec 2022 18:08:32.286 +0000 (UTC) Date: Sun, 04 Dec 2022 18:08:32 +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: 87554 X-SG-EID: =?us-ascii?Q?DvL3W2Xo+Vk=2FeUn3F50L=2FNc8u9NqZCnbE0mXZHiyye4R1YZg=2FtAFc0SAFzpcS=2F?= =?us-ascii?Q?Zcr7BqPN=2FYCcMZBMITNeIci9STxYay0JAJWPbek?= =?us-ascii?Q?rFR+qXPXgU0KNbzzllhahyEqtVhV90p1AtSKwRh?= =?us-ascii?Q?XhKljWiQs3+MPd=2FQ7gqFXinHQ+BEXbyhsNvvuwk?= =?us-ascii?Q?6L2OdBiD3Ytnmt60bCWfC4ct3495g5wPxkc4uhu?= =?us-ascii?Q?SY7+iugXBE+qbSKBNevMMK7RNXQPbeKGl2KmdhH?= =?us-ascii?Q?dXbS3Vw7u65bbgC3brSMQ=3D=3D?= To: ruby-dev@ml.ruby-lang.org X-Entity-ID: b/2+PoftWZ6GuOu3b0IycA== Message-ID-Hash: M464YGSAFYHQ7M5LDHLEB37UR2LQXBSI X-Message-ID-Hash: M464YGSAFYHQ7M5LDHLEB37UR2LQXBSI 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=3A52010=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). Although, it should still be possible to optimize delegation as good as possible and allow `*`/`**`/`&` by having those behave like `def args(*,**,&) = *`, `def kwargs(*,**,&) = **`, `def block(*,**,&) = &` and as if `*` was replaced by `args(...)`, etc, but that's of course at the expense of making the handling of those slightly slower and more complicated (but at least it doesn't slow down delegation via `(...)`). ---------------------------------------- Feature #19134: ** is not allowed in def foo(...) https://bugs.ruby-lang.org/issues/19134#change-100489 * 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/