2009/9/23 Rick DeNatale <rick.denatale / gmail.com>: > On Wed, Sep 23, 2009 at 5:26 AM, Yukihiro Matsumoto <matz / ruby-lang.org> wrote: >> Hi, >> >> In message "Re: [ruby-core:25713] [Bug #2131] f(not x) => syntax error" >> on Wed, 23 Sep 2009 00:13:06 +0900, "James M. Lawrence" <redmine / ruby-lang.org> writes: >> >> |This should have been classified as a feature request. >> | >> |Since (not x) is legal syntax, it is my opinion that f(not x) should belegal. >> >> So, do you mean a,b,c = 1,2,3 is legal syntax, should we allow >> f(a,b,c = 1,2,3) ? Well, it's somewhat ambiguous in this case. Comma is used both as argument separator and as assignment separator. Spicing with more parens should help, though. > > or even > > f(class Foo;attr_accessor :bar;end;Foo.new.x=5) > > <G> > It's not legal syntax? That surprises me .. it does return a value, doesn'tit? Well, maybe adding that Foo.new.x=5 is a bit overboard. Thanks Michal