[ruby-core:105861] [Ruby master Feature#11256] anonymous block forwarding
From:
"jeremyevans0 (Jeremy Evans)" <noreply@...>
Date:
2021-10-28 22:01:31 UTC
List:
ruby-core #105861
Issue #11256 has been updated by jeremyevans0 (Jeremy Evans).
Looks like @matz approved this, but it was never committed. I've submitted a pull request for this that is based on the patches provided by @mame and @nobu: https://github.com/ruby/ruby/pull/5051
----------------------------------------
Feature #11256: anonymous block forwarding
https://bugs.ruby-lang.org/issues/11256#change-94399
* Author: bughit (bug hit)
* Status: Assigned
* Priority: Normal
* Assignee: matz (Yukihiro Matsumoto)
----------------------------------------
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:ruby-core-request@ruby-lang.org?subject=unsubscribe>
<http://lists.ruby-lang.org/cgi-bin/mailman/options/ruby-core>