To Adopt mandatory semicolon in method calls if kwargs are passed

Requiring a semicolon helps nothing here.

Nope, the only issue there is dispatch, and the fact that argument name is not a property of a function but that of a method. It’s impossible to do without keyword argument.

Nope, it helps nothing there either. new is defined clear enough that it doesn’t need help to distinguish between positional and keyword arguement. Implementing it requires quiet a bit of change but this isn’t one of them.

No, again, the issue is dispatch.


And to make it more clear, ; is optional in the call for keyword argument simply because there isn’t any way sensible to interpret a named positional argument. If you have a plan to change that, which should be discussed in Allow use of named-argument syntax for positional arguments? - #50 by akdor1154 instead, requiring ; in some cases is literally the easist step to take. Without it, there’s zero reason to do any syntax change that has no purpose…

All the current “equivalent to” you show are syntactic transformation. Most of what you are proposing are not. They all require knowledge of the callee and that’s simply impossible.

1 Like