I prefer option 1. The invariant we need is that a method from a class runs only with `self` being an instance of that class, and option 1 checks exactly that. It is also the same rule as `UnboundMethod#bind`. It is OK to delete the o...matz (Yukihiro Matsumoto)
I once said this idea was interesting, but after thinking about it again, I am not positive. For `extend`, the example can already be written with `class << obj`, and the result is almost the same. For `prepend`, I agree with @byroot....matz (Yukihiro Matsumoto)
I agree this is a bug. Case-insensitive matching should not depend on the direction, and `×` and `÷` are not a case pair. Making the two tables agree according to the Unicode case mapping is the right fix. I leave the review of the ta...matz (Yukihiro Matsumoto)
I agree this is a bug. A dry run should not delete files, and silently relinking `ruby` without extensions afterwards is bad. The priority is low, as you say. I leave the choice among the directions you proposed to the maintainers of ...matz (Yukihiro Matsumoto)
Thank you for the detailed analysis. This is a regression that affects ordinary workloads such as file I/O and compression, so it should be fixed before the 4.1 release. I leave how to fix it to @eightbitraptor. Matz.matz (Yukihiro Matsumoto)
The situation has changed since this was rejected in 2019. Now that glibc no longer provides `crypt` by itself, the same code can silently produce a DES hash depending on the build environment. That is the worst combination. So I am n...matz (Yukihiro Matsumoto)
In Ruby, the role of an anonymous method is played by Proc. I don't want to introduce another kind of anonymous callable. What you are missing is a way to call a Proc with a different `self` while also passing a block to it. That is a...matz (Yukihiro Matsumoto)
I am not going to accept this proposal. `ensure` is for cleanup that spans multiple statements after acquiring a resource. Attaching cleanup to a single expression is rare, and methods that take a block usually cover that case. The va...matz (Yukihiro Matsumoto)
My answer is the same as in #22473. `obj.singleton_class.remove_method(:name)` and `obj.singleton_class.undef_method(:name)` already do this clearly, and removing singleton methods is rare. I'd also like to be careful about adding method...matz (Yukihiro Matsumoto)
Symmetry alone is not a sufficient reason to add methods. `extend` exists because adding module functionality to an object is common. Prepending to a singleton class is much rarer, and `obj.singleton_class.prepend(mod)` already does it c...matz (Yukihiro Matsumoto)