Project

General

Profile

Feature #15547

deprecate iterator?

Added by nobu (Nobuyoshi Nakada) over 1 year ago. Updated 28 days ago.

Status:
Closed
Priority:
Normal
Assignee:
-
Target version:
-
[ruby-core:91166]

Description

block_given? has been added since 1.6, and iterator? is almost never used these days.
I think we can deprecate the latter before Ruby 3.


Files

0001-Deprecate-iterator-method.patch (2.47 KB) 0001-Deprecate-iterator-method.patch nobu (Nobuyoshi Nakada), 01/19/2019 02:35 AM

Related issues

Has duplicate Ruby master - Feature #17133: Add deprecate warning Kernel#iterator?ClosedActions

Updated by shevegen (Robert A. Heiler) over 1 year ago

I did not even know that iterator? exists - at first I thought it was something new. :)

I agree with nobu's comment.

#2

Updated by Eregon (Benoit Daloze) about 1 month ago

  • Has duplicate Feature #17133: Add deprecate warning Kernel#iterator? added
#5

Updated by sawa (Tsuyoshi Sawada) 29 days ago

  • Description updated (diff)

Updated by matz (Yukihiro Matsumoto) 28 days ago

I agree.

Matz.

#7

Updated by nobu (Nobuyoshi Nakada) 28 days ago

  • Status changed from Open to Closed

Applied in changeset git|2e80c8347e27f8ecedab56bab105d69efa35cbea.


Deprecate iterator? method

[Feature #15547] [Fix GH-2071]

Also available in: Atom PDF