functional programming - Is there any difference between closure in Scheme and usual closure in other languages? -


i'm studying sicp right now. , found definition of closure in sicp (maybe) different closure definition in other languages.

here's sicp says:

the ability create pairs elements pairs essence of list structure's importance representational tool. refer ability closure property of cons. in general, operation combining data objects satisfies closure property if results of combining things operation can combined using same operation.

here closure more close closure in mathematics think, not have seen in javascript, means ability of function access enclosure environment variables.

am wrong?

you're right; text not referring "closures"--an implementation strategy ensure functions-as-values refer correctly lexical bindings--but more mathematical notion of "closure", instance in statement "the integers closed under addition operation". is: applying operation 2 elements of set produces result still member of set.