[Python-ideas] Keyword only argument on function call
Robert Vanden Eynde
robertve92 at gmail.com
Fri Sep 7 12:17:54 EDT 2018
>
>
> I disagree. Keyword arguments are a fine and good thing, but they are
> best used for optional arguments IMHO. Verbosity for the sake of
> verbosity is not a good thing.
I disagree, when you have more than one parameter it's sometimes
complicated to remember the order. Therefore, when you name your args, you
have way less probability of passing the wrong variable, even with only one
arg.
Verbosity adds redundancy, so that both caller and callee are sure they
mean the same thing.
That's why Java has types everywhere, such that the "declaration part" and
the "use" part agree on the same idea (same type).
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mail.python.org/pipermail/python-ideas/attachments/20180907/178f287e/attachment.html>
More information about the Python-ideas
mailing list