Project

General

Profile

Actions

Feature #17195

closed

Freeze Enumerator::ArithmeticSequence objects

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

Status:
Rejected
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

Like0
Like0Like0Like0Like0Like0