C++ does this and the decision to make is to capture by reference or value.
Environments aren’t a thing in Haskell etc. does that mean it’s not functional?
Environments aren’t a thing in Haskell etc. does that mean it’s not functional?
Are you saying that Haskell doesn't have lexical environments? It very much does, just as all major languages of the ML language family do.