On Tuesday, January 12, 2016 at 9:34:05 AM UTC-5, Felix Küppers wrote:
>
>
> The reason for the apparently unnecessary IFE is so that the same .js 
> files can be require()'d by regular Node.js code.
>
>
> So given the psychological benefits ("warm feeling") and the compatibility 
> reasons ("node imports") I come to the following conclusion:
>
> The extra closure matters.
>

http://stackoverflow.com/a/21531410/227176

>From the Node.js docs <http://nodejs.org/api/modules.html#modules_modules>:

Variables local to the module will be private, as though the module was 
wrapped in a function


Also:

New Study: Immediately Invoked Function Expressions linked to warm feelings 
(even when redundant).

Also:

Requesting further discussion to be moved to TiddlyWiki-Dev list.
 

-- 
You received this message because you are subscribed to the Google Groups 
"TiddlyWiki" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
To post to this group, send email to [email protected].
Visit this group at https://groups.google.com/group/tiddlywiki.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/tiddlywiki/1a20b6b7-f7a3-40a0-8712-82a4c6fc86c6%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to