Why not do...

(function (){})();

~Philip

On Wed, May 18, 2011 at 12:20 AM, Ryan Florence <[email protected]>wrote:

> > I'm strongly biased towards not doing it at all.
>
> You have to force the function to be an expression somehow, you can't just
> "not do it at all" or else you'll get a parse error.
>
> function (){}() // error
> !function (){}() // IIFE
>
>

Reply via email to