Interesting talk on Python vs. Ruby and how he would like Python to have just a bit more syntactic flexibility.

Carl Banks pavlovevidence at gmail.com
Sat Feb 20 02:30:21 EST 2010


On Feb 19, 10:30 pm, Lawrence D'Oliveiro <l... at geek-
central.gen.new_zealand> wrote:
> In message <op.u8at0suda8ncjz at gnudebst>, Rhodri James wrote:
>
> > In classic Pascal, a procedure was distinct from a function in that it had
> > no return value.  The concept doesn't really apply in Python; there are no
> > procedures in that sense, since if a function terminates without supplying
> > an explicit return value it returns None.
>
> If Python doesn’t distinguish between procedures and functions, why should
> it distinguish between statements and expressions?

Because the real world works is more complex than simplified one-
sentence generalizations.


Carl Bnkas



More information about the Python-list mailing list