From: Marc Heiler Date: 2012-02-07T03:54:02+09:00 Subject: Using _ like in Scala? fruits = %w( apple banana orange ) fruits.each { puts _ } vs fruits.each { |f| puts f } I was told that scala uses _ to denote as default block argument (the first one. I am not sure what else scala does) Could _ be used in Ruby to allow the same? The question is actually a bit larger. I am wondering whether Ruby could reserve a set of key-names for variables. In this example it could use _ but it could perhaps make better use of it too. Perhaps even something like: array_fruits = %w( apple banana orange ) ^^^ And the above would keep the variable permanently as array type. (With the convention being that the leading name array_ would indicate that) -- Posted via http://www.ruby-forum.com/.