"no variable or argument declarations are necessary."
Donn Cave
donn at u.washington.edu
Tue Oct 4 14:05:41 EDT 2005
In article <4342bd9a.3192006743 at news.oz.net>,
bokr at oz.net (Bengt Richter) wrote:
> On Tue, 04 Oct 2005 10:18:24 -0700, Donn Cave <donn at u.washington.edu> wrote:
> [...]
> >In the functional language approach I'm familiar with, you
> >introduce a variable into a scope with a bind -
> >
> > let a = expr in
> > ... do something with a
> >
> >and initialization is part of the package. Type is usually
> >inferred. The kicker though is that the variable is never
> >reassigned. In the ideal case it's essentially an alias for
> >the initializing expression. That's one possibility we can
> >probably not find in Python's universe.
> >
> how would you compare that with
> lambda a=expr: ... do something (limited to expression) with a
> ?
OK, the limitations of a Python lambda body do have this effect.
But compare programming in a language like that, to programming
with Python lambdas? Maybe it would be like living in a Zen
Monastery, vs. living in your car.
Donn Cave, donn at u.washington.edu
More information about the Python-list
mailing list