[Python-ideas] A "local" pseudo-function

Greg Ewing greg.ewing at canterbury.ac.nz
Sat Apr 28 22:03:11 EDT 2018


Tim Peters wrote:
> To the compiler, it's approximately nothing like "a
> function call".

It's nothing like a function call to the user, either,
except in the most superficial of ways.

> - The explicit parentheses make it impossible to misunderstand where
>   the expression begins or ends.

Except that you then go and break that rule by saying
that it doesn't apply when you're in the condition of
an "if" statement.

> I do want to leverage what people "already know".

Seems to me this proposal does that in the worst
possible way, by deceiving the user into thinking
it's something familiar when it's not.

-- 
Greg


More information about the Python-ideas mailing list