From: "David A. Black" Date: 2005-08-05T06:44:55+09:00 Subject: Re: ruby-dev summary 26468-26661 Hi -- On Fri, 5 Aug 2005, Jim Freeze wrote: > It was brought up today at lunch by Hal > that we could always use paren' to denote > default arguments. I think it is a rare enough > event, and the method has little impact on > the language, that it may be the best idea yet. > I'm not sure if Hal or someone else > came up with the idea first > > x(a,b) { |y, (z=2)| .... } > x(a,b) { |y, (z=5|7)| ... } > mylambda = lambda { |(a=1), (b=2) ... } > x(a,b, &mylambda) Just thinking out loud, so to speak (so to speak [so to speak...]): x(a,b) {|y, z(=2)| ... } Sort of: "z (which defaults to 2)" David -- David A. Black dblack@wobblini.net