score:2

Accepted answer

You're trying to mix two different, and conflicting, convenience syntax options.

instance.method(argument)

... can be expressed as ...

instance method argument

... and, if the method() takes no argument then that can also be expressed with spaces, but the parser needs a little help.

instance method;

On a separate track, if the instance is this then that can be dropped.

method(argument)

But you can't drop the parentheses because the parser tries to interpret that as instance method and fails.


Related Query

More Query from same tag