Please consider these three expressions:
@\foo bar, @baz
@foo bar, @baz
@.foo bar, @baz
Currently 1 and 2 both compile into
self:foo(bar, self.baz)
while 3 compiles into
self.foo(bar, self.baz)
with 2 interpreted as a method call, which I find rather confusing. I did rather expect 2 to be interpreted like 3, especially since non-calling context @baz compiles to self.baz in all cases!
I'm not sure that this is a bug (I have not found it in the documentation) but it seems inconsistent.
Please consider these three expressions:
@\foo bar, @baz@foo bar, @baz@.foo bar, @bazCurrently 1 and 2 both compile into
self:foo(bar, self.baz)while 3 compiles into
self.foo(bar, self.baz)with 2 interpreted as a method call, which I find rather confusing. I did rather expect 2 to be interpreted like 3, especially since non-calling context
@bazcompiles toself.bazin all cases!I'm not sure that this is a bug (I have not found it in the documentation) but it seems inconsistent.