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) server-digest SHA256) (No client certificate requested) by dcvr.yhbt.net (Postfix) with ESMTPS id F284F1F4B8 for ; Thu, 10 Oct 2024 08:50:36 +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=N49LCWn1; 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=SOZEEAPR; dkim-atps=neutral DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=ml.ruby-lang.org; s=mail; t=1728550234; bh=lFVZtgF7vgOM9RnbSDZI/SwWcADvMI6hWFEhucllZiw=; 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=N49LCWn1jgH+BwKFbp0TJUqJIF31qpqbcXZKI5CorRvJXFGh6MXoVw+ekMkx/O/hH JxQCGgOmv7e7nBrM58PPQjk6E7xv5WpR+0Aw7TeDHSYnVa4OVqW3uol7hVKZHjXEKc 5OBB7TzgN5oew0JrT0k2xqnZaXkUQoUjZmxfs0oI= Received: from nue.mailmanlists.eu (localhost [IPv6:::1]) by nue.mailmanlists.eu (Postfix) with ESMTP id 3607B43FE7 for ; Thu, 10 Oct 2024 08:50:34 +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=SOZEEAPR; dkim-atps=neutral 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 A548843C65 for ; Thu, 10 Oct 2024 08:50:23 +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=5L1JJ/8KSN8h0/ZZB10OWfFvdkfyroVwrGSE/Ju62ao=; b=SOZEEAPRofboZQ5gKO4fxEuZcmy5Djl+ztxtKA2ya5UUH0/ble9qBftoL+b9wd1gh5Y9 fDgzrPw8ROPuQ/DMMyprnjoZEcm9rGhNcGJ//EAq/30HLsbEPAmHZDbT1+towkPwWIcplA eI2U7QZm8shCcSlieAm7d3WkCEBPcs8J3aNjFoZZDBewtDthGMCfh+jnrRkq2DC9MVJ91Y 324o1aCj6mKjKvxCPRXdvaKxNvZNZkFfJa4R3yQ+9uEgKdOmtF15goZvWM7jhbb29PvwKN YBhdA/z/y5oDrU3SAra+4XI/pEVF+lbKUQSP4M/wG8X/90Vt6jHpsMCuEF6oMKlQ== Received: by recvd-d66cff667-9t457 with SMTP id recvd-d66cff667-9t457-1-6707954B-15 2024-10-10 08:50:19.847951506 +0000 UTC m=+2386427.476193242 Received: from herokuapp.com (unknown) by geopod-ismtpd-2 (SG) with ESMTP id IVutIEWMRxmzShMhC76OwA for ; Thu, 10 Oct 2024 08:50:19.760 +0000 (UTC) Date: Thu, 10 Oct 2024 08:50:21 +0000 (UTC) Message-ID: References: Mime-Version: 1.0 X-Redmine-Project: ruby-master X-Redmine-Issue-Tracker: Feature X-Redmine-Issue-Id: 20793 X-Redmine-Issue-Author: artemb X-Redmine-Issue-Priority: Normal X-Redmine-Sender: artemb 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: 96137 X-SG-EID: =?us-ascii?Q?u001=2EHnvJnzJ2lmG+PgbkniTdgZfnvZUxDZtmfCdpK9x5f=2FhMt3rLfcsnBVG2E?= =?us-ascii?Q?=2FOsr2hsb6M8cYOQvfYebBgPNyJD=2FOB967Vr57W=2F?= =?us-ascii?Q?hJfOBhQ9fpPAMVQVWeGpNT103OeV03vWhdiDf02?= =?us-ascii?Q?gr7q+vzF9ESKPR4+OeJa8yWsQkYA3mKoesmH+Zv?= =?us-ascii?Q?3YUrMsiLMspx6F6CbvbT8khKzx4PzKe0mkofds3?= =?us-ascii?Q?fcqkR56GUwHdmKp=2FuWppwOgdAGNb+rF2YJ2oDQc?= =?us-ascii?Q?kSnWkMBfkcfBK8=2Fh10G3uxqn3A=3D=3D?= To: ruby-core@ml.ruby-lang.org X-Entity-ID: u001.I8uzylDtAfgbeCOeLBYDww== Message-ID-Hash: GURTQ6RUDGGZMUTNLFS5MZV35EE6BGXW X-Message-ID-Hash: GURTQ6RUDGGZMUTNLFS5MZV35EE6BGXW 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:119502] [Ruby master Feature#20793] Allow Multiple Arguments for the .is_a? Method List-Id: Ruby developers Archived-At: List-Archive: List-Help: List-Owner: List-Post: List-Subscribe: List-Unsubscribe: From: "artemb (Artem Borodkin) via ruby-core" Cc: "artemb (Artem Borodkin)" Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Issue #20793 has been reported by artemb (Artem Borodkin). ---------------------------------------- Feature #20793: Allow Multiple Arguments for the .is_a? Method https://bugs.ruby-lang.org/issues/20793 * Author: artemb (Artem Borodkin) * Status: Open ---------------------------------------- I propose allowing multiple arguments to be passed to the .is_a? Method imply "OR" semantics: ``` ruby name.is_a? String, Symbol ``` Currently, we need to write the following to achieve the same functionality: ``` ruby [String, Symbol].include?(name.class) ``` -- 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/