Ahhh. Thanks. Can't figure out how to get the left click to work--discourse apparently always intercepts left-clicks for "markdowned" links, and both there and when the raw url is used, formatting/urlencoding/escaping breaks down--but added instructions.
... wondering why it's "weird" ...
No other language requires one to make a function and solely a function to create a scope. Others have block scoping, which include ifs, whiles, functions, methods, classes ... for C-ish languages, anything in braces.
AHAHAHAHA. Silly programmers. That's not "closure!" That's ENCLOSURE!!!!!
Hmmm. Never thought of that.
Maybe. Or maybe there is something being closed.
Either way, head on out on the internet and let me know how convincing the entire programming community to rename to enclosures goes
It's referring to what happens to the variables, and the function is what closes the binding, hence the function (and its enviro.) is the closure. Basically its lambda expression is a function, and free variables are variables outside of a function.
I'm less clear why this is desirable, aside from the ability to re-use the same variable names without changes to one instance affecting another.
That's it. You got it! That's also huge in million line programs that use millions of variables.
Sounds interesting. And a little scary.
You misspelled "better"
OK, that's helpful.
To reiterate, probably helpful, but also probably inadvertently a little misleading. Best to come back to this later and double-check its accuracy.
nps, and Cheers