3 ms·
Yes, it's a good thing to mention for python devs, but I don't know if it's necessary in any other context. Also your wording about javascript is weird. 'var'
by Dylan16807 14y ago
Yes, it's a good thing to mention for python devs, but I don't know if it's necessary in any other context.
Also your wording about javascript is weird. 'var' for scoping is function scope, what is your 'but' for? And proper lua doesn't use globals for temporary variables, it's firmly in the 'block scope' camp.
- mratzloff 14y agoYes, it's a good thing to mention for python devs, but I don't know if it's necessary in any other context. The article's title is "What Python developers need to know before migrating to Go". I don't know how many times I need to repeat this. I can't go back and edit the original post to clarify. Anyway, about JS, you are right; I was thinking "var" was like "local" or "my", but it isn't. Oh well.
- Dylan16807 14y ago'let' is coming up for that purpose.