Yes, why not? The scoping of objects is the same, and using
list indexing is not that bad a workaround when you need to
rebind an object. Another way would be to do
While you may have created closure-like behaviour by using the array
workaround, it is not a lexical closure.
A lexical closure has access to the variables in the environment, not
the objects.
···
#####################################################################################
This email has been scanned by MailMarshal, an email content filter.
#####################################################################################