From: Matt Armstrong Date: 2002-01-15T02:54:10+09:00 Subject: Re: a wishlist for ruby 2.0 "Hal E. Fulton" writes: >> Hello -- >> >> On Mon, 14 Jan 2002, Mathieu Bouchard wrote: >> >> > * syntax: make foo.bar(2,3,5)=7 mean foo.bar=(2,3,5,7) >> >> What's the reasoning behind that? > > Not to speak for matju, I can see a logic behind this. I think > he wants to let bar= have other arguments besides the single > argument. Whatever the reason, it certainly violates my principle of least surprise. foo.bar(2,3,5)=7 parses least surprisingly as ((foo.bar)(2,3,5)) = 7 for me. -- matt