Project

General

Profile

Actions

Feature #11256

closed

anonymous block forwarding

Added by bughit (bug hit) over 9 years ago. Updated about 3 years ago.

Status:
Closed
Target version:
-
[ruby-core:69559]

Description

since capturing a block into a proc is slow: foo(&block)
and creating chains of blocks is kind of ugly and ultimately also inefficient: foo{yield}
why not allow block forwarding without capturing: foo(&) foo(1, 2, &)


Related issues 3 (0 open3 closed)

Related to Ruby master - Feature #3447: argument delegationClosedmatz (Yukihiro Matsumoto)Actions
Related to Ruby master - Feature #14045: Lazy Proc allocation for block parametersClosedko1 (Koichi Sasada)Actions
Related to Ruby master - Bug #18828: [Ripper] Anonymous parameter forwarding failures are not checkedClosedActions
Actions

Also available in: Atom PDF

Like0
Like0Like0Like0Like0Like0Like0Like0Like0Like0Like0Like0Like0Like0Like0Like0Like0Like0Like0Like0Like0Like0Like0Like0Like0Like0