2 ms·
Nitpick: "What’s happened? The required_field_names variable has been scoped by var, and the whole script has been wrapped in a namespace." It's been wrapped
by Hovertruck 15y ago
Nitpick:
"What’s happened? The required_field_names variable has been scoped
by var, and the whole script has been wrapped in a namespace."
It's been wrapped in a closure. Namespace, to me, implies that it's been stashed somewhere easily accessible in the future.
- Jare 15y agoIt's just a space that contains names. The result is actually pretty similar to C++'s anonymous namespaces, which is why I guess I didn't blink at the name.
- jaybee 15y agoYeah, I'll give you that :) The article is adapted from something I wrote for .net magazine, so the audience perhaps wouldn't have been familiar with the terminology.