Efficiency of Plain Fucntions vs. Immediate Functions?
<p>Someone mentioned that immediate or self-executing functions have to store the whole stack.  Is this true...If so what are the pros and cons of using something like the module pattern (which is based on an immediate function) vs. a plain function?</p>

<p>A function is inherently private, but you can return items that you want to be public, so it can handle privacy.</p>

<p>The main difference I see, is that you don't have global imports or the ability to make sure that the developer ( wait that's me ) uses new with the function ( or it is complicated ).</p>

<p>In general when trying to provide privacy and state when should one use the module pattern and when should one just use a plain function?</p>

<p>A second side question is does a function provide state when used with new?</p>
