[ruby-core:81270] [Ruby trunk Feature#13333] block to yield

From: nobu@...
Date: 2017-05-19 09:01:08 UTC
List: ruby-core #81270
Issue #13333 has been updated by nobu (Nobuyoshi Nakada).


I think it would make generator happy.

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

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

In This Thread

Prev Next