Project

General

Profile

Actions

Bug #7248

closed

Shouldn't Enumerator::Lazy.new be private?

Added by marcandre (Marc-Andre Lafortune) about 12 years ago. Updated almost 12 years ago.

Status:
Closed
Target version:
ruby -v:
ruby 2.0.0dev (2012-10-29 trunk 37380) [x86_64-darwin10.8.0]
Backport:
[ruby-core:48639]

Description

Is there a reason why Enumerator::Lazy.new is not private?

Lazy enumerators should be created with Enumerable#lazy. Moreover, there is no doc, and it can give unexpected results too.


Related issues 1 (0 open1 closed)

Related to Ruby master - Feature #4890: Enumerable#lazyClosedyhara (Yutaka HARA)06/16/2011Actions
Actions

Also available in: Atom PDF

Like0
Like0Like0Like0Like0Like0Like0Like0Like0