From: "nobu (Nobuyoshi Nakada)" Date: 2022-06-15T12:59:56+00:00 Subject: [ruby-core:108931] [Ruby master Feature#18831] Block argument to `yield` Issue #18831 has been reported by nobu (Nobuyoshi Nakada). ---------------------------------------- Feature #18831: Block argument to `yield` https://bugs.ruby-lang.org/issues/18831 * Author: nobu (Nobuyoshi Nakada) * Status: Open * Priority: Normal ---------------------------------------- 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 -- https://bugs.ruby-lang.org/ Unsubscribe: