Path: csiph.com!news.swapon.de!eternal-september.org!feeder.eternal-september.org!mx02.eternal-september.org!.POSTED!not-for-mail From: Marko Rauhamaa Newsgroups: comp.lang.python Subject: Re: The Cost of Dynamism (was Re: Pyhon 2.x or 3.x, which is faster?) Date: Tue, 15 Mar 2016 08:25:45 +0200 Organization: A noiseless patient Spider Lines: 27 Message-ID: <87fuvsuuja.fsf@elektro.pacujo.net> References: <87h9gcxkd3.fsf@elektro.pacujo.net> <87shzvgbhq.fsf@elektro.pacujo.net> <56e44a4e$0$1614$c3e8da3$5496439d@news.astraweb.com> <56e5354c$0$1593$c3e8da3$5496439d@news.astraweb.com> <56e764eb$0$1607$c3e8da3$5496439d@news.astraweb.com> Mime-Version: 1.0 Content-Type: text/plain Injection-Info: mx02.eternal-september.org; posting-host="b7cb1518d23ec19d482dcc9c31d30fdd"; logging-data="5268"; mail-complaints-to="abuse@eternal-september.org"; posting-account="U2FsdGVkX18vqENUfOrEHLzAW9gkJqMa" User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/24.5 (gnu/linux) Cancel-Lock: sha1:LGQKikGidvRp80jLx8aVNK6wsIY= sha1:WE1QiNKjmUoT3FJEpui0Gepsv8g= Xref: csiph.com comp.lang.python:104921 BartC : > Python includes some odd features that you say are indispensable > (mutable function names), but excludes others which are standard in > some other languages. Which is true for any programming language. Each of them comes with its facilities and ways to go about things. You decide which of them you find suitable for whatever purpose. However, I don't think you should try to go against the grain of a programming language. Of course, great new ideas can be found. It would be interesting, for example, to turn names (or "slots") into first-class objects in Python. It would be perfectly backward-compatible and would simplify some expressions: pool.intern(&self.s[n].x) for: self.s[n].x = pool.intern(self.s[n].x) Just an example -- I don't feel a strong need for the idea. Marko