[ruby-core:84075] [Ruby trunk Feature#11256][Assigned] anonymous block forwarding

From: ko1@...
Date: 2017-12-04 07:49:28 UTC
List: ruby-core #84075
Issue #11256 has been updated by ko1 (Koichi Sasada).

Status changed from Closed to Assigned

Matz: 

> but there is another motivation of this feature: the simplicity of the notation

Bn proposal syntax, we don't need to use a variable name for block parameter. What do you think about it?


----------------------------------------
Feature #11256: anonymous block forwarding
https://bugs.ruby-lang.org/issues/11256#change-68169

* Author: bughit (bug hit)
* Status: Assigned
* Priority: Normal
* Assignee: matz (Yukihiro Matsumoto)
* Target version: 
----------------------------------------
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, &)



-- 
https://bugs.ruby-lang.org/

Unsubscribe: <mailto:[email protected]?subject=unsubscribe>
<http://lists.ruby-lang.org/cgi-bin/mailman/options/ruby-core>

In This Thread

Prev Next