Closures and let blocks

Nathan de Vries nathan at atnan.com
Thu Jan 3 15:27:06 PST 2008


On Thu, 2008-01-03 at 20:41 +0100, Igor Bukanov wrote:
> let (function f() { ... f()... }) { ... }

I would write that as follows:

    let (f = function() { arguments.callee(); } ) {
        f();
    }

Are inline named functions a necessity for let expressions? My feeling
is no, and that the name bears no meaning within the scope of the let
expression.


Cheers,

--
Nathan de Vries
-------------- next part --------------
A non-text attachment was scrubbed...
Name: smime.p7s
Type: application/x-pkcs7-signature
Size: 1878 bytes
Desc: not available
Url : http://mail.mozilla.org/pipermail/es-discuss/attachments/20080104/5bb3e9fe/attachment-0002.bin 


More information about the Es4-discuss mailing list