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

sjdevnull at yahoo.com sjdevnull at yahoo.com
Sat Feb 20 02:13:36 EST 2010


On Feb 20, 1:28 am, Lawrence D'Oliveiro <l... at geek-
central.gen.new_zealand> wrote:
> In message <87eikjcuzk.... at benfinney.id.au>, Ben Finney wrote:
>
>
>
> > Lawrence D'Oliveiro <l... at geek-central.gen.new_zealand> writes:
>
> >> In message <hlhdsi$2p... at theodyn.ncf.ca>, cjw wrote:
>
> >> > Aren't lambda forms better described as function?
>
> >> Is this a function?
>
> >>     lambda : None
>
> >> What about this?
>
> >>     lambda : sys.stdout.write("hi there!\n")
>
> > They are both lambda forms in Python. As a Python expression, they
> > evaluate to (they “return”) a function object.
>
> So there is no distinction between functions and procedures, then?

Not in most modern languages, no.  i think the major places they are
differentiated are in functional languages and in pre-1993ish
languages (give or take a few years), neither of which applies to
Python or Ruby.



More information about the Python-list mailing list