General

Profile

Ethan (Ethan -)

  • Login: Ethan
  • Email: notethan@gmail.com
  • Registered on: 02/05/2010
  • Last sign in: 11/16/2025

Issues

open closed Total
Assigned issues 0 0 0
Reported issues 1 9 10

Activity

08/09/2025

02:10 AM Ruby Revision 4209ebb1 (git): [DOC] Array#fill fix to indicate return is self
doc currently indicates the return value as `new_array` but then in the first sentence explains "always returns +self+ (never a new array)". Ethan (Ethan -)
02:10 AM Ruby Revision 60ca525f (git): [DOC] Array#map! fix to indicate return is self
Ethan (Ethan -)

05/28/2025

03:56 AM Ruby Bug #21375: Set[] does not call #initialize
It seems like a regression to me. I mean, it broke my code - maybe I'm alone, I can't say whether other people override #initialize and expect Set[] to call it, but it seems like a reasonable assumption to make, particularly since it alw... Ethan (Ethan -)
03:50 AM Ruby Bug #21376: Inconsistent equality between Sets with different compare_by_identity, different classes
I am not certain what behavior is intended as correct - the 3.5 one seems correct to me but I am no expert. Then assuming the 3.5 behavior is correct, don't know if backporting a fix to supported versions with ruby Set is desirable. If i... Ethan (Ethan -)
03:49 AM Ruby Bug #21377: core Set#inspect does not use inherited class name
Hash, Array, and String don't say the name of the class in their inspect, though.
I'm certainly in favor of `Set[1, 2, 3]` (this is an improvement I make wherever I subclass Set already), but this seems orthogonal to identifying the c...
Ethan (Ethan -)

05/27/2025

06:51 AM Ruby Bug #21377: core Set#inspect does not use inherited class name
`#pretty_print` also now just uses Set instead of self.class.name. Ethan (Ethan -)
06:49 AM Ruby Bug #21377 (Closed): core Set#inspect does not use inherited class name
Following #21216, Set#inspect stopped using self.class.name and just uses 'Set' now.
```ruby
class MySet < Set; end
MySet.new.inspect
# before: #<MySet: {}>
# now: #<Set: {}>
```
Ethan (Ethan -)
06:47 AM Ruby Bug #21376 (Open): Inconsistent equality between Sets with different compare_by_identity, different classes
This is an inconsistency between the new core Set and the ruby-implemented Set. I think probably the new implementation's behavior seems correct and the ruby implementation is an incorrect edge case.
```ruby
class MySet < Set
end
...
Ethan (Ethan -)
05:30 AM Ruby Bug #21375 (Closed): Set[] does not call #initialize
I have a subclass of Set that overrides #initialize. Following #21216, .new does call #initialize but .[] does not.
```ruby
class MySet < Set
def initialize(enum = nil)
compare_by_identity
super
end
end
MySet.new....
Ethan (Ethan -)
03:56 AM Ruby Bug #21373: "Illegal instruction: 4" when raising SystemStackError after rescuing
Ah, I missed that one. Can close this duplicate, I think. Ethan (Ethan -)

Also available in: Atom