Re: "no variable or argument declarations are necessary."
- From: bokr@xxxxxx (Bengt Richter)
- Date: Tue, 04 Oct 2005 17:40:23 GMT
On Tue, 04 Oct 2005 10:18:24 -0700, Donn Cave <donn@xxxxxxxxxxxxxxxx> 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
?
Regards,
Bengt Richter
.
- Follow-Ups:
- Re: "no variable or argument declarations are necessary."
- From: Donn Cave
- Re: "no variable or argument declarations are necessary."
- References:
- "no variable or argument declarations are necessary."
- From: James A . Donald
- Re: "no variable or argument declarations are necessary."
- From: Jean-François Doyon
- Re: "no variable or argument declarations are necessary."
- From: James A . Donald
- Re: "no variable or argument declarations are necessary."
- From: Michael
- Re: "no variable or argument declarations are necessary."
- From: George Sakkis
- Re: "no variable or argument declarations are necessary."
- From: Antoon Pardon
- Re: "no variable or argument declarations are necessary."
- From: Steven D'Aprano
- Re: "no variable or argument declarations are necessary."
- From: Antoon Pardon
- Re: "no variable or argument declarations are necessary."
- From: Paul Rubin
- Re: "no variable or argument declarations are necessary."
- From: Steve Holden
- Re: "no variable or argument declarations are necessary."
- From: Donn Cave
- "no variable or argument declarations are necessary."
- Prev by Date: Re: Distributing programs
- Next by Date: Re: New project coming up...stay with Python, or go with a dot net language??? Your thoughts please!
- Previous by thread: Re: "no variable or argument declarations are necessary."
- Next by thread: Re: "no variable or argument declarations are necessary."
- Index(es):