What does Python fix?

Tim Peters tim.one at home.com
Thu Jan 24 20:39:26 EST 2002


[Tim]
> Which makes it refreshing that comparatively few insist Python is a
> broken Smalltalk dialect <wink>.

[James Althoff]
> But we all know that's *only* because y'all haven't given us syntax for
> nameless code blocks -- yet. <wink>

But we have!  Take your <nameless code block> and write it like so:

def <aname>():
    <nameless code block>

This is what Smalltalk was striving for, but it failed to achieve a key
insight:  nameless code blocks are easier to reuse if they're named <wink>.





More information about the Python-list mailing list