From: muraken@... Date: 2020-10-09T08:01:35+00:00 Subject: [ruby-core:100346] [Ruby master Feature#17195] Freeze Enumerator::ArithmeticSequence objects Issue #17195 has been updated by mrkn (Kenta Murata). The reason why ArithmeticSequence is a subclass of Enumerator is for conserving the compatibility of the return types of `Range#step` and `Numeric#step`. ---------------------------------------- Feature #17195: Freeze Enumerator::ArithmeticSequence objects https://bugs.ruby-lang.org/issues/17195#change-87958 * Author: Eregon (Benoit Daloze) * Status: Open * Priority: Normal ---------------------------------------- Now, all Ranges are frozen (#15504). Enumerator::ArithmeticSequence is very similar to Range, just with an extra `step`. They're essentially already immutable, except that one could use set instance variables, but it seems of little use. So, should we make Enumerator::ArithmeticSequence frozen too? -- https://bugs.ruby-lang.org/ Unsubscribe: