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=0.1 required=3.0 tests=DKIM_SIGNED,DKIM_VALID, DKIM_VALID_AU,MAILING_LIST_MULTI,RCVD_IN_BL_SPAMCOP_NET,SPF_HELO_PASS, SPF_PASS autolearn=no autolearn_force=no version=3.4.6 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 2EE9E1F5CB for ; Sat, 5 Oct 2024 14:27:56 +0000 (UTC) Authentication-Results: dcvr.yhbt.net; dkim=pass (1024-bit key; unprotected) header.d=ml.ruby-lang.org header.i=@ml.ruby-lang.org header.a=rsa-sha256 header.s=mail header.b=ZTYU98qE; 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=SG1VWQeW; dkim-atps=neutral DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=ml.ruby-lang.org; s=mail; t=1728138443; bh=0TCG8nBhp92irRnTeaPY/qKNpKVtKDW0MW673h8zmUw=; 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=ZTYU98qEx0QC277mxma3c/+Bq6KSD45Hmmf0SV4rfiAEel92PXLM5s+igET/82zts +gjKJ4M76Ho4+BH9Eib2Lt4XwozfkO2pJxiZ6aOzVf2WEPuD5BIxWUusbcwAPxnrUk kvOxZTypTT1X+17dqL4jEPM2ZnBozf+wIwzMdEUg= Received: from nue.mailmanlists.eu (localhost [IPv6:::1]) by nue.mailmanlists.eu (Postfix) with ESMTP id 46C4E43FB9 for ; Sat, 5 Oct 2024 14:27:23 +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=SG1VWQeW; dkim-atps=neutral Received: from s.wrqvwxzv.outbound-mail.sendgrid.net (s.wrqvwxzv.outbound-mail.sendgrid.net [149.72.154.232]) by nue.mailmanlists.eu (Postfix) with ESMTPS id 95C6E43F4A for ; Sat, 5 Oct 2024 14:27:12 +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=bMfDBPhWVQYEO6gZLxHyMQnhzBQL/FLOolRnCrFTing=; b=SG1VWQeWsrjqjyGT9NgsVmibsUe+6nq91g7zt/Exk8e2+eb8MePQI4JM6vvvJKCJjPSv nWztjjGuqpVMn0LzCnwlE6T9C5IMScfB1UkYx361wcIq5W04aCzVDQ2PCNpQzWt9fVm6Lk 5Bnga4PDAWT2N3HhuX8QY8ymbzvZf/IH46QgtD/omDScbv1nit5CWd/XlUlO+gs+9hoxVh USZxX7HBzXOGliiDsn3cwg/SPwJqg3SVpmLB3Ih6PhX4QhQIMbAPkLA5hH508AsRdclSXE Q4BUGHGcepF1FSuCwMWi3GsWa31I1nOTh8+2OAW+zGPhNVs4wAygIyeUoHNZmmyw== Received: by recvd-d66cff667-vttfr with SMTP id recvd-d66cff667-vttfr-1-67014CBF-1 2024-10-05 14:27:11.010267562 +0000 UTC m=+1974589.886076810 Received: from herokuapp.com (unknown) by geopod-ismtpd-14 (SG) with ESMTP id WhtY9NW4RQeOawk3jhKj_g for ; Sat, 05 Oct 2024 14:27:10.917 +0000 (UTC) Date: Sat, 05 Oct 2024 14:27:11 +0000 (UTC) Message-ID: References: Mime-Version: 1.0 X-Redmine-Project: ruby-master X-Redmine-Issue-Tracker: Bug X-Redmine-Issue-Id: 20785 X-Redmine-Issue-Author: tompng X-Redmine-Issue-Assignee: ktsj X-Redmine-Issue-Priority: Normal X-Redmine-Sender: nobu 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: 96100 X-SG-EID: =?us-ascii?Q?u001=2E5PtzXJ23KrYzgM1nrOIr+EQ222PyrDaWSg0Er8CZ8tP86xyXmBM81zBKD?= =?us-ascii?Q?HreavdFYMbHjxXOR6UPMkt=2Fu9CyBIp6y52n8D2y?= =?us-ascii?Q?qA9zqurrgUcrYP7EvcaHT=2FoaPMuhvgZDmQnrI7b?= =?us-ascii?Q?SgD5oSeVbAdj6tE0PGPoVKKX00e2uzQR6=2FolHUl?= =?us-ascii?Q?8vT9EeTS5NFNKTRyJiBMsDekTIMxqVzhdPnRrQ6?= =?us-ascii?Q?UcohYApkISOTBZxPExSlAD4HWkTuq5RCXDSIuYz?= =?us-ascii?Q?h8VM4m9CzzaBHEg1Do8lV1v0ZQ=3D=3D?= To: ruby-core@ml.ruby-lang.org X-Entity-ID: u001.I8uzylDtAfgbeCOeLBYDww== Message-ID-Hash: EU6V7K4OXD5SL2DI3HWH2KLPIWOXJJOM X-Message-ID-Hash: EU6V7K4OXD5SL2DI3HWH2KLPIWOXJJOM 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.9 Precedence: list Reply-To: Ruby developers Subject: [ruby-core:119464] [Ruby master Bug#20785] Should `a in b, and c` `a in b, or c` `a in b, rescue c` be syntax ok? List-Id: Ruby developers Archived-At: List-Archive: List-Help: List-Owner: List-Post: List-Subscribe: List-Unsubscribe: From: "nobu (Nobuyoshi Nakada) via ruby-core" Cc: "nobu (Nobuyoshi Nakada)" Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Issue #20785 has been updated by nobu (Nobuyoshi Nakada). Assignee changed from matz (Yukihiro Matsumoto) to ktsj (Kazuki Tsujimoto) ---------------------------------------- Bug #20785: Should `a in b, and c` `a in b, or c` `a in b, rescue c` be syntax ok? https://bugs.ruby-lang.org/issues/20785#change-110082 * Author: tompng (tomoya ishida) * Status: Open * Assignee: ktsj (Kazuki Tsujimoto) * ruby -v: ruby 3.4.0dev (2024-10-04T03:22:53Z master 939ec9f080) +YJIT +MN +PRISM [arm64-darwin22] * Backport: 3.1: UNKNOWN, 3.2: UNKNOWN, 3.3: UNKNOWN ---------------------------------------- This code is accepted in parse.y but rejected in prism ~~~ruby tap do a in b, and c a in b, or c a in b, rescue c end # parsed as tap do (a in b,;) and c (a in b,;) or c a in b,; rescue c end ~~~ I think these should be rejected like prism (parse.y accepts) ~~~ruby a in b, and c a in b, and c tap do a in b, rescue c end ~~~ I think these should be accepted like parse.y (prism rejects) ~~~ruby tap do a in b, end tap do a in b, rescue end ~~~ -- 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/lists/ruby-core.ml.ruby-lang.org/