From: David Masover Date: 2010-10-12T11:41:00+09:00 Subject: Re: Why does a lot of code not include parenthesis? On Monday, October 11, 2010 03:55:18 am egervari wrote: > In scala, there is no difference between operators and methods. They > are all methods. For what it's worth, this is also the case for most operators in Ruby, it's just that pretty much all Ruby operators have special syntax. This makes sense, I think -- for example, a.foo = b is equivalent to a.foo=(b) which seems a lot more manageable to me than a.foo.=(b) What would a.foo be returning, then? You could do it, it would just be clumsy, and wouldn't work nearly as well with immutable types -- and all the basic Ruby numeric types are immutable.