Join GitHub today
GitHub is home to over 40 million developers working together to host and review code, manage projects, and build software together.
Sign upSelf referential anonymous function #215
Comments
This comment has been minimized.
This comment has been minimized.
pbrinkmeier
commented
Aug 2, 2015
|
It's rather: console.log('meh')
;(function a () {
console.log('hiya')
}())Also, you'll find a couple of reasons not to use this sorrily common pattern. |
This comment has been minimized.
This comment has been minimized.
|
Feel free to enlighten me. |
This comment has been minimized.
This comment has been minimized.
|
Self-calling functions need to be prepended with a |
This comment has been minimized.
This comment has been minimized.
pbrinkmeier
commented
Aug 3, 2015
|
What I meant was that you should avoid using IIFEs if you can :) |
feross
added
the
question
label
Aug 3, 2015
This comment has been minimized.
This comment has been minimized.
|
Pretty sure that @anacrolix is referring to Moved this issue to: maxogden/standard-format#92 |
feross
closed this
Aug 4, 2015
lock
bot
locked as resolved and limited conversation to collaborators
May 11, 2018
Sign up for free
to subscribe to this conversation on GitHub.
Already have an account?
Sign in.
anacrolix commentedAug 1, 2015
This kind of code seems quite common:
But standard formats it like so: