From: Devin Mullins Date: 2005-07-29T11:37:24+09:00 Subject: Re: Idea for Ruby 2.0 Daniel Brockman wrote: >Interestingly, blocks can have duplicate argument names, > {1=>2}.each {|_,_| puts _} #=> 2 >but methods can't: > def foo _,_ ; end #=> SyntaxError > > That's because blocks don't actually have "arguments." They follow the rules of parallel assignment. http://phrogz.net/ProgrammingRuby/language.html#blocksclosuresandprocobjects http://phrogz.net/ProgrammingRuby/language.html#parallelassignment Devin I decided that I can only post one email per day to this list, so as not to be a total spammer. This is the one I chose. So sue me. Maybe if I'm good, I'll up it to two. Probably by next week, I'll have given up.