Top "Scoping" questions

Scoping associates a name with an entity.

What is lexical scope?

What is a brief introduction to lexical scoping?

javascript scoping lexical-scope
Node-style require for in-browser javascript?

Are there any libraries for in-browser javascript that provide the same flexibility/modularity/ease of use as Node's require? To …

javascript load require scoping
How do you use "<<-" (scoping assignment) in R?

I just finished reading about scoping in the R intro, and am very curious about the <<- assignment. …

r scoping lexical-scope r-faq
What is the difference between my and local in Perl?

I am seeing both of them used in this script I am trying to debug and the literature is just …

perl scoping
What are the double colons (::) in R?

I am following a tutorial in Rbloggers and found the use of double colons, I looked online, but I couldn't …

r scope namespaces operators scoping
Dynamic Scoping - Deep Binding vs Shallow Binding

I've been trying to get my head around shallow binding and deep binding, wikipedia doesn't do a good job of …

language-agnostic binding scoping dynamic-scope
could not find function inside foreach loop

I'm trying to use foreach to do multicore computing in R. A <-function(....) { foreach(i=1:10) %dopar% { B() } } then I …

r foreach parallel-processing multicore scoping
Passing variables to $.ajax().done()

I'm lost. How might I pass a loop variable to an AJAX .done() call? for (var i in obj) { $.ajax(/…

jquery ajax loops promise scoping
Why use a do-end block in Lua?

I keep trying to find answers for this but fail to do so. I wanted to know, what is the …

lua block scoping
Javascript function scoping and hoisting

I just read a great article about JavaScript Scoping and Hoisting by Ben Cherry in which he gives the following …

javascript scope scoping hoisting