Python is readable
rosuav at gmail.com
Wed Mar 21 07:59:23 CET 2012
On Wed, Mar 21, 2012 at 5:52 PM, Steve Howell <showell30 at yahoo.com> wrote:
> On the one hand, you say that "push(stack, item)" reads quite
> differently from "stack.push(item)".
> On the other hand, you say they are "so close to identical as makes no
> I'm trying to make sense of that. Are you saying that the way the two
> idioms read makes no odds, despite reading quite differently?
If you're designing a language (or, often, a library/module), you can
choose either option without greatly annoying your users. As a
programmer, I use both types of API all the time. Yes, they read
differently, but neither is confusing, and you can easily grok that
they do the same thing.
More information about the Python-list