From: "nobu (Nobuyoshi Nakada)" Date: 2013-05-03T09:17:10+09:00 Subject: [ruby-core:54750] [ruby-trunk - Feature #8361] Alternative syntax for block parameter Issue #8361 has been updated by nobu (Nobuyoshi Nakada). If it were introduced, how could you pass an array with a block? ---------------------------------------- Feature #8361: Alternative syntax for block parameter https://bugs.ruby-lang.org/issues/8361#change-39094 Author: alexeymuranov (Alexey Muranov) Status: Open Priority: Normal Assignee: Category: Target version: =begin I propose an alternative syntax for block parameters: p = lambda [x] { # do whatever you like with x here, but be sure to return the result } instead of p = lambda { |x| # ... } This would be consistent with the syntax of procedure call: (({p[a]})). Also, compare: a_bunch.each [element] do # ... end with: a_bunch.each do |element| # ... end =end -- http://bugs.ruby-lang.org/