Values and objects

Marko Rauhamaa marko at pacujo.net
Sun May 11 15:56:14 EDT 2014


Marko Rauhamaa <marko at pacujo.net>:

> I don't see any practical reason for that limitation. If you allow
> setq/setf/set!, you have no reason to disallow symbol-value on a local
> variable.

In fact, the reason probably is practical and analogous to the locals()
caveat in Python. If the language made local variables available
indirectly, I'm guessing some optimizations would be much harder or
impossible.

In my own lisp implementation, where performance is not a concern at
all, the local variables are both lexically scoped and offer access to
symbol-value.


Marko



More information about the Python-list mailing list