Project

General

Profile

Actions

Feature #18831

open

Block argument to `yield`

Added by nobu (Nobuyoshi Nakada) almost 2 years ago. Updated almost 2 years ago.

Status:
Open
Assignee:
-
Target version:
-
[ruby-core:108931]

Description

Block argument to yield is a syntax error.
This is because there was previously no way to receive a given block in the yielded block.
However do |&block| has been introduced since 1.8.7.
Why is it prohibited still now?

https://github.com/nobu/ruby/tree/blockarg-yield


Related issues 1 (0 open1 closed)

Related to Ruby master - Bug #10436: ruby -c and ripper inconsistency: m(&nil) {}ClosedActions
Actions

Also available in: Atom PDF

Like0
Like0Like0Like0Like0