From: Joe Van Dyk Date: 2006-09-22T06:43:11+09:00 Subject: Re: the point of omitting parentheses On 9/20/06, Phrogz wrote: > Would you really type: > > class Foo > attr_accessor( :bar ) > end > > f = Foo.new() > f.bar=( 12 ) > puts( f.bar() ) > > One of the greatest reasons for omitting parentheses is that the > syntactic sugar allows you to write code that *looks* like you're > assigning values to properties and reading those properties, when in > reality you're calling methods. > > f.bar = 12 > puts( f.bar ) Or hell, x = 5 If you used parenthesis around every method call, this would be x=(5) How does that work, actually? method_missing?