Path: csiph.com!v102.xanadu-bbs.net!xanadu-bbs.net!feeder.erje.net!eu.feeder.erje.net!eternal-september.org!feeder.eternal-september.org!news.eternal-september.org!.POSTED!not-for-mail From: Marko Rauhamaa Newsgroups: comp.lang.python Subject: Re: Values and objects Date: Sun, 11 May 2014 22:56:14 +0300 Organization: A noiseless patient Spider Lines: 17 Message-ID: <87vbtcqech.fsf@elektro.pacujo.net> References: <235C4BFA-9770-481A-9FCF-21C3F036769C@gmail.com> <87zjiqbmy5.fsf@elektro.pacujo.net> <536dc3f7$0$29980$c3e8da3$5496439d@news.astraweb.com> <536decca$0$29980$c3e8da3$5496439d@news.astraweb.com> <536E799D.6080602@stoneleaf.us> <536eebc1$0$29980$c3e8da3$5496439d@news.astraweb.com> <536f069b$0$29980$c3e8da3$5496439d@news.astraweb.com> <3fb2d95e-2fb6-43a5-a725-c6d38444b80c@googlegroups.com> <87ppjksum0.fsf@elektro.pacujo.net> <455a3dc0-c492-498b-9593-d30b8a967898@googlegroups.com> <87a9aos4gk.fsf@elektro.pacujo.net> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Injection-Info: mx05.eternal-september.org; posting-host="ff5cf27ef3d5b31f034d3b72bdc27a41"; logging-data="28533"; mail-complaints-to="abuse@eternal-september.org"; posting-account="U2FsdGVkX19+4BvqVLaA8YqBFv815yB3" User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/23.3 (gnu/linux) Cancel-Lock: sha1:7ab/7Fs8UAolz9mKXB9y9p3SVmA= sha1:AiGi0oMu+NHZeyv26+zhLIW5vmE= Xref: csiph.com comp.lang.python:71341 Marko Rauhamaa : > 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