From: shevegen@... Date: 2017-03-25T17:55:41+00:00 Subject: [ruby-core:80345] [Ruby trunk Feature#13333] block to yield Issue #13333 has been updated by shevegen (Robert A. Heiler). > Out of curiosity: What's the use case(s)? Could be simply due to reciprocity. :) ---------------------------------------- Feature #13333: block to yield https://bugs.ruby-lang.org/issues/13333#change-63826 * 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: