[Python-ideas] Keyword only argument on function call
Anders Hovmöller
boxed at killingar.net
Thu Sep 6 22:48:41 EDT 2018
> Maybe something like this would be better:
>
> f(=a, =b, =c)
>
Haha. Look at my PEP, it's under "rejected alternative syntax", because of
the super angry replies I got on this very mailing list when I suggested
this syntax a few years ago :P
I think that syntax is pretty nice personally, but me and everyone at work
I've discussed this with think that f(*, a, b, c) syntax is even nicer
since it mirrors "def f(*, a, b, c)" so nicely. Most replies to my new
syntax has been along the lines of "seems obvious" and "ooooh" :P
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mail.python.org/pipermail/python-ideas/attachments/20180906/f09772ab/attachment.html>
More information about the Python-ideas
mailing list