Finally but
What the hell has taken so long this has been massive pain forever and why the stupid name.
A very traditional niche of scripting languages, (such as Perl, Python or Ruby), has been in the ad hoc manipulation of databases – from grabbing data, transforming it, performing bulk updates, right on through to full-on data migration projects that move data from one platform or RDBMS to another. Scripting languages are …
What the hell has taken so long this has been massive pain forever and why the stupid name.
Commonly, "closure" is a "thing" that contains a piece of code, usually anonymous function, *and* some data private to that function. What you call "closure" in your example is a simple lambda (anonymous function), not a proper closure.