[Python-ideas] Inline Functions - idea
Ethan Furman
ethan at stoneleaf.us
Wed Feb 5 21:03:46 CET 2014
On 02/05/2014 07:15 AM, Alex Rodrigues wrote:
>
> 3. I always knew you could do it the way skip showed, but I feel like that is a bit clunky. This would allow you to do
> that in a more straight-forward way.
I disagree.
saveline(**locals())
is very clear about what it's doing, while
saveline()
is not. One has to go find `saveline` in the source to see that it's a magical 'in-line' function. This is definitely
a case of "explicit is better than implicit".
Nice discussion, though. Thanks for bringing it up.
--
~Ethan~
More information about the Python-ideas
mailing list