From: Florian Gross Date: 2005-03-23T22:59:49+09:00 Subject: Re: RCR 296: Destructive methods return self Trans wrote: >>Another idea I've had is that, because prefix "." is not allowed in Ruby >>1.8, it could later serve so that in "a.foo;.bar" the dot-prefix operator >>would make the method-call on the "syntactically previous" receiver, that >>is, a. How "previous" is defined may depend on precedence rules... > > It has also been prposed that ".x" simply imply "self.x". An easier > notion would simply be: > > a.(strip!; upcase!) And this is a very interesting alternative to the a.apply { strip!; upcase! } syntax. I think I like this one as it is paired and thus easier to make the connection visually. E.g: form.button.tabgroup.last.( caption = "Foo" enabled = true top -= 5 left += 10 onclick = { puts "Hello World" } ) Does this sound sensible?