News for hackers. Stuff that matters.
Re:John Carmack working on Scheme as a VR scripting language by ahoge on Wednesday July 01, 2015 @10:01AM (#9811824)
> You get to the end and all of a sudden the }();

With most code conventions, you wrap immediately invoked function expressions (IIFEs) in parens:

  var foo = (function () {
    ...
  }());
The only purpose of those extra parens is to act as marker.

Well, with block scope (`let` & `const`), IIFEs aren't really needed anymore.

There are no comments on this comment yet.