[Python-ideas] Fwd: About calling syntax

Blake Winton bwinton at latte.ca
Wed Sep 10 21:51:09 CEST 2008


Zaur Shibzoukhov wrote:
> 2008/9/10 Bruce Leban <bruce at leapyear.org <mailto:bruce at leapyear.org>>
> 
>     I'm sure there are scenarios where this is useful but I think in
>     general it would be less readable. As it is, I can't miss a
>     positional argument in the middle of a long list of keyword arguments:
> 
>     foo(a=b,c=d,e=f,g=h,i=j,k=l,m)
> 
> 
> But programmer could select most readable form of function call (as the 
> case may be).

But some of them wouldn't, and I would have to learn all the forms of 
function call to read other people's code.  Additional forms are easy 
for the writer, but hard for the reader, and I read far more code than I 
write.

To say it a different way, programmers _could_ write easy-to-understand 
Perl, but they can also write hard-to-understand Perl, and in my 
experience when presented with that choice, most of them choose the 
hard-to-understand route.  ;)

Later,
Blake.



More information about the Python-ideas mailing list