From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on starla X-Spam-Level: X-Spam-Status: No, score=-1.1 required=3.0 tests=DKIM_SIGNED,DKIM_VALID, DKIM_VALID_AU,MAILING_LIST_MULTI,SPF_HELO_PASS,SPF_PASS autolearn=ham autolearn_force=no version=3.4.6 Received: from nue.mailmanlists.eu (nue.mailmanlists.eu [IPv6:2a01:4f8:1c0c:6b10::1]) (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 1081A1F44D for ; Sun, 21 Apr 2024 14:34:05 +0000 (UTC) Authentication-Results: dcvr.yhbt.net; dkim=pass (1024-bit key; secure) header.d=ml.ruby-lang.org header.i=@ml.ruby-lang.org header.a=rsa-sha256 header.s=mail header.b=GfFoGKqv; 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=Xj899CpI; dkim-atps=neutral Received: from nue.mailmanlists.eu (localhost [127.0.0.1]) by nue.mailmanlists.eu (Postfix) with ESMTP id D378D8444D; Sun, 21 Apr 2024 14:33:55 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=ml.ruby-lang.org; s=mail; t=1713710035; bh=xP2asRumn5Vts9RZfR4HzC+mcYv0Vc3MM5dFe8JHZI0=; h=Date:References:To:Reply-To:Subject:List-Id:List-Archive: List-Help:List-Owner:List-Post:List-Subscribe:List-Unsubscribe: From:Cc:From; b=GfFoGKqv14j4WKxLiI7Nw6qBPHVh+olVtJP+QLYsGVKsAx5QSGOlY6gkjXifNTWB9 VKrPx3pefmUJudkiiZwZO1UlzGfxJnl62ivaHB5JxtA9G66bY6hEhVjwhP422n4/OX jTiURjBVOzXTDj7kbxjyxicR0ghCSBQNPwhazeOY= Received: from s.wrqvtbkv.outbound-mail.sendgrid.net (s.wrqvtbkv.outbound-mail.sendgrid.net [149.72.123.24]) by nue.mailmanlists.eu (Postfix) with ESMTPS id 59084842F0 for ; Sun, 21 Apr 2024 14:33:52 +0000 (UTC) Authentication-Results: nue.mailmanlists.eu; dkim=pass (2048-bit key; unprotected) header.d=ruby-lang.org header.i=@ruby-lang.org header.a=rsa-sha256 header.s=s1 header.b=Xj899CpI; dkim-atps=neutral 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=qFFYiEeVPdxUzUXqN/kWunzzqMRpSHfJxq90T/wXSoM=; b=Xj899CpI7ZNYDXBstUwshLK2Nf9c7lhMXGME9LO6h3kvIlF0hmpEanmgQc2LDr1a/LKf D3LWqNDWnEn8WCiBJEziDYU+CRHHumuYccqfi2SqUmAjbaqTV5OZdEUflH9W/0SeGOe5LF 7kgDmhMwwUd9w17L1f/g55giljjw9MgcOnhaq387Q+YqSh67+FBi17uJG9NtkI9Szj5gxC xiki28q1eoZbdk4/Z0dcBfwCLEJygYpji8vZcN92KcVFGhfrYqD3U0kuNhjyqRLQr1terK PzxYEP/8Wa7oBWKF8WlGR4RWoI6kL25nyvtXO65WLDcsixCM5UlZ6b4n4V2rhejA== Received: by recvd-8c7b9fb4f-c4fbj with SMTP id recvd-8c7b9fb4f-c4fbj-1-662523CF-A 2024-04-21 14:33:51.311142288 +0000 UTC m=+750738.399520438 Received: from herokuapp.com (unknown) by geopod-ismtpd-9 (SG) with ESMTP id ruhJ5WJ4RKG_1jL2vE0VoQ for ; Sun, 21 Apr 2024 14:33:51.283 +0000 (UTC) Date: Sun, 21 Apr 2024 14:33:51 +0000 (UTC) Message-ID: References: Mime-Version: 1.0 X-Redmine-Project: ruby-master X-Redmine-Issue-Tracker: Misc X-Redmine-Issue-Id: 20441 X-Redmine-Issue-Author: ozydingo X-Redmine-Issue-Priority: Normal X-Redmine-Sender: ozydingo 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: 94231 X-SG-EID: =?us-ascii?Q?u001=2EWtjZePZ3IDDBwtRucCmuQUiYSyr+JPf+ZmCYBVn7D93R7gFrWGyOlEszX?= =?us-ascii?Q?asxAGqvNvImWJtoLSflkInthJWIzhiIJGtsXbiv?= =?us-ascii?Q?25bKX5XDbEbcxwYNelHxI4beFp8fk77ia9Dj9Rr?= =?us-ascii?Q?ccqUL+=2FmL9rVJWuXxpP1sFteLr8ZHn5Q+eQ1hCf?= =?us-ascii?Q?QlqQEUEE=2FXgoh1OKFT0PnbVGcUJQl8bIoIJXTzn?= =?us-ascii?Q?J=2FkIRuI9Os4uaJki0mNYaRzqumh7vkTMR4WyFyW?= =?us-ascii?Q?KNWSpsO5Nea1Q6eUt04tB9M+dA=3D=3D?= To: ruby-core@ml.ruby-lang.org X-Entity-ID: u001.I8uzylDtAfgbeCOeLBYDww== Message-ID-Hash: ILHN7D5EDYUJNPV536CZI4ZZ2GLF73C4 X-Message-ID-Hash: ILHN7D5EDYUJNPV536CZI4ZZ2GLF73C4 X-MailFrom: bounces+313651-b711-ruby-core=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 Subject: [ruby-core:117635] [Ruby master Misc#20441] Should passing keyword args to method_name(*) be an error? List-Id: Ruby developers Archived-At: List-Archive: List-Help: List-Owner: List-Post: List-Subscribe: List-Unsubscribe: From: "ozydingo (Andrew Schwartz) via ruby-core" Cc: "ozydingo (Andrew Schwartz)" Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Issue #20441 has been updated by ozydingo (Andrew Schwartz). Understanding better the role of `ruby2_keywords` is helping, thank you. It seemed to me that either way some compatibility was broken, but the subtleties of maintaining compatibility as well as possible in a variety of circumstances is indeed tricky. I appreciate your time explaining it further here. ---------------------------------------- Misc #20441: Should passing keyword args to method_name(*) be an error? https://bugs.ruby-lang.org/issues/20441#change-108043 * Author: ozydingo (Andrew Schwartz) * Status: Open ---------------------------------------- In the following method: ```rb def foo(*) super end ``` it is apparently the intended ruby 3 behavior to pass keyword args as a positional Hash to `super`. I believe this is confusing and can lead to hidden and hard-to-discover bugs (e.g. #20440). Since `*` is meant to only represent positional args, should it be an ArgumentError to pass keyword args at all to this method? Similar to how it is an error to pass positions args to `bar(**)`. -- https://bugs.ruby-lang.org/ ______________________________________________ ruby-core mailing list -- ruby-core@ml.ruby-lang.org To unsubscribe send an email to ruby-core-leave@ml.ruby-lang.org ruby-core info -- https://ml.ruby-lang.org/mailman3/postorius/lists/ruby-core.ml.ruby-lang.org/