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: AS4713 221.184.0.0/13 X-Spam-Status: No, score=-4.1 required=3.0 tests=AWL,BAYES_00, MAILING_LIST_MULTI,RCVD_IN_DNSWL_MED,SPF_HELO_NONE,SPF_PASS, UNPARSEABLE_RELAY shortcircuit=no autolearn=ham autolearn_force=no version=3.4.2 Received: from neon.ruby-lang.org (neon.ruby-lang.org [221.186.184.75]) by dcvr.yhbt.net (Postfix) with ESMTP id 810281F8C8 for ; Fri, 17 Sep 2021 02:57:50 +0000 (UTC) Received: from neon.ruby-lang.org (localhost [IPv6:::1]) by neon.ruby-lang.org (Postfix) with ESMTP id F0130120AB1; Fri, 17 Sep 2021 11:56:24 +0900 (JST) Received: from o1678948x4.outbound-mail.sendgrid.net (o1678948x4.outbound-mail.sendgrid.net [167.89.48.4]) by neon.ruby-lang.org (Postfix) with ESMTPS id AAADF120A5F for ; Fri, 17 Sep 2021 11:56:23 +0900 (JST) Received: by filterdrecv-7bf5c69d5-jxm6x with SMTP id filterdrecv-7bf5c69d5-jxm6x-1-61440426-16 2021-09-17 02:57:42.615881202 +0000 UTC m=+1312665.428619057 Received: from herokuapp.com (unknown) by ismtpd0150p1iad2.sendgrid.net (SG) with ESMTP id Bv7Y9dUPQHOhfuRSzTOHEQ for ; Fri, 17 Sep 2021 02:57:42.486 +0000 (UTC) Date: Fri, 17 Sep 2021 02:57:42 +0000 (UTC) From: "shugo (Shugo Maeda)" Message-ID: References: Mime-Version: 1.0 X-Redmine-Project: ruby-master X-Redmine-Issue-Tracker: Bug X-Redmine-Issue-Id: 17429 X-Redmine-Issue-Author: shugo X-Redmine-Issue-Assignee: matz X-Redmine-Sender: shugo 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: 81494 X-SG-EID: =?us-ascii?Q?o0C=2FsDUd4ZFGiDZCTbvVjqibxcpCfydz4lwnBQWyXZ+Plw=2FfhrG0CQPbrktOPX?= =?us-ascii?Q?NfKIrb7bilCwkXET66DNxoL0kHDH1Ec=2FH+2JL=2F3?= =?us-ascii?Q?DY25XvU9cb+pozSutlDqYcJICxdZevvhqsk1Afz?= =?us-ascii?Q?wINpILLz6FnNYTEhPSxYYDr11GgPvxpuMNmumLO?= =?us-ascii?Q?LO5WeEL4A6EDzo+vvxPhgZx4i7EpzPEZYjwMRXW?= =?us-ascii?Q?Dn4HpMXhJ5pW3IyKVvt0pn+07ThnpoxZOrw+FT8?= =?us-ascii?Q?eU2UFe5GRuDW3MFG67Acg=3D=3D?= To: ruby-core@ruby-lang.org X-Entity-ID: b/2+PoftWZ6GuOu3b0IycA== X-ML-Name: ruby-core X-Mail-Count: 105318 Subject: [ruby-core:105318] [Ruby master Bug#17429] Prohibit include/prepend in refinement modules X-BeenThere: ruby-core@ruby-lang.org X-Mailman-Version: 2.1.15 Precedence: list Reply-To: Ruby developers List-Id: Ruby developers List-Unsubscribe: , List-Post: List-Help: List-Subscribe: , Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Errors-To: ruby-core-bounces@ruby-lang.org Sender: "ruby-core" Issue #17429 has been updated by shugo (Shugo Maeda). mame (Yusuke Endoh) wrote in #note-30: > BTW, the change seems to add a top-level new constant `::Refinement`. I'm not against the addition, but unsure about the impact. Is it okay? I found a gem named refinement.... https://github.com/square/refinement/blob/master/lib/refinement.rb ---------------------------------------- Bug #17429: Prohibit include/prepend in refinement modules https://bugs.ruby-lang.org/issues/17429#change-93733 * Author: shugo (Shugo Maeda) * Status: Open * Priority: Normal * Assignee: matz (Yukihiro Matsumoto) * Backport: 2.5: UNKNOWN, 2.6: UNKNOWN, 2.7: UNKNOWN ---------------------------------------- include/prepend in refinement modules has implementation difficulties such as #17007 and #17379, and tends to be misleading like #17374. How about to prohibit it in future versions? Method copy like #17380 may be more convenient, but it's confusing to use names include and prepend because semantics is different from the original ones. -- https://bugs.ruby-lang.org/