The end to all language wars and the great unity API to come!

Gregory Ewing greg.ewing at canterbury.ac.nz
Sun Jul 3 00:00:03 EDT 2011


rantingrick wrote:

> Ruby: for x in blah: blah_blah_blah
> Python: for x in blah: blah_blah_blah

Here you're making the mistake of thinking that surface syntax
is all that matters. Although the 'for' statements in Python and
Ruby look very similar, underneath they're based on quite
different mechanisms. They're not equivalent: the Python way
leads to various powerful things such as generators; the Ruby
way lends itself more to user-defined control structures.

-- 
Greg



More information about the Python-list mailing list