Earlier quoted context omitted.
Could you clarify what's insane about the variable scoping in R? I'm a bit too close to R so I'm afraid I'm oblivious.
I use a lot of R. The thing that drives me insane is when you create a function such as multxy <- function (x){x * y}, then you call multxy(6) R will not return an error as long as y is in the parent environment. That's pretty insane.
Sorry for being obtuse, but doesn't Python do the same thing? I just tried in ipython
y = 2
def mult(x):
return x * y
mult(6) # returns 12