Project

General

Profile

Actions

Feature #17195

closed

Freeze Enumerator::ArithmeticSequence objects

Added by Eregon (Benoit Daloze) about 2 years ago. Updated almost 2 years ago.

Status:
Rejected
Priority:
Normal
Assignee:
-
Target version:
-
[ruby-core:100174]

Description

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?


Related issues 1 (0 open1 closed)

Related to Ruby master - Feature #15504: Freeze all Range objectsClosedmatz (Yukihiro Matsumoto)Actions
Actions

Also available in: Atom PDF