From: "shugo (Shugo Maeda)" Date: 2021-09-28T23:21:40+00:00 Subject: [ruby-core:105475] [Ruby master Bug#17429] Prohibit include/prepend in refinement modules Issue #17429 has been updated by shugo (Shugo Maeda). Status changed from Open to Assigned shugo (Shugo Maeda) wrote in #note-32: > > I found a gem named refinement.... > > > > https://github.com/square/refinement/blob/master/lib/refinement.rb > > I've created an issue on the project: . The maintainer of the gem agreed with introducing the built-in class Refinement. Matz, is the method name import is OK? ---------------------------------------- Bug #17429: Prohibit include/prepend in refinement modules https://bugs.ruby-lang.org/issues/17429#change-93924 * Author: shugo (Shugo Maeda) * Status: Assigned * 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/ Unsubscribe: