Re: lambda... again
- From: Yuriy Ershov <yuriy.ershov@xxxxxxxxx>
- Date: Tue, 23 Oct 2007 01:34:20 -0700
On 23 , 05:22, "slebet...@xxxxxxxxx" <slebet...@xxxxxxxxx> wrote:
Personally I think the [apply] method that we now have in 8.5 is the
way to go. Lambdas are after all merely values. So there is no reason
to treat a lambda as anything other than a string until you want to
use it as a function. So:
We WILL have ;) there's still no release.
At least, I could use this lambda for backward compatibility.
Tcl 8.4 is actual standard now.
The advantage is that unlike the proc work-arounds the apply method
has all the advantages of regular variables: local scope, passable as
first class citizens etc.
The disadvantage is that calling a lambda is different from calling a
regular proc (you need to prepend apply to it). Now... if someone
feels like modifying [unknown] so that lambdas can be called like a
proc..... ;-)
Procs are compiled only once.
And what about apply-lambda?
.
- Follow-Ups:
- Re: lambda... again
- From: slebetman@xxxxxxxxx
- Re: lambda... again
- From: schlenk
- Re: lambda... again
- References:
- lambda... again
- From: yuriy . ershov
- Re: lambda... again
- From: slebetman@xxxxxxxxx
- lambda... again
- Prev by Date: Re: Standard Database Interface?
- Next by Date: Re: lambda... again
- Previous by thread: Re: lambda... again
- Next by thread: Re: lambda... again
- Index(es):
Relevant Pages
|