Issue #13333 has been reported by nobu (Nobuyoshi Nakada).

----------------------------------------
Feature #13333: block to yield
https://bugs.ruby-lang.org/issues/13333

* Author: nobu (Nobuyoshi Nakada)
* Status: Open
* Priority: Normal
* Assignee: 
* Target version: 
----------------------------------------
Currently, blocks can take a block by `do |&block| end` construct.
But the only way to pass a block or a bloc argument is making a `Proc` and calling `Proc#call` with a blockarg.
I think `yield` should take a block or a block argument now.

https://github.com/ruby/ruby/compare/trunk...nobu:feature/yield-blockarg



-- 
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>