Python is readable
Chris Angelico
rosuav at gmail.com
Wed Mar 21 01:40:18 EDT 2012
On Wed, Mar 21, 2012 at 3:58 PM, Steve Howell <showell30 at yahoo.com> wrote:
> So saying "push(stack, item)" or "push(item, stack)" seems very
> unsophisticated, almost assembly-like in syntax, albeit at a higher
> level conceptually than assembly.
Perhaps it does, but "push(stack, item)" and "stack.push(item)" are so
close to identical as makes no odds (in a number of languages, the
latter is just syntactic sugar for something like the former) - yet
they "read" quite differently, one with verb first, one with noun
first.
Code doesn't follow the same grammar as English prose, and forcing it
to usually makes it sound odd. Reader.can_comprehend(code) is True.
ChrisA
More information about the Python-list
mailing list