Could Emacs be rewritten in Python?

Christian Tanzer tanzer at swing.co.at
Fri Apr 11 09:13:24 CEST 2003


Carl Banks <imbosol-1049990205 at aerojockey.com> wrote:

> > Maybe I'm missing something, but non-dynamically scoped globals just
> > seem like a bad idea to me.
>
> What you're missing is that Globals are Evil(tm), and furthermore,
> that if your program depends on changing a global in a dynamic scope,
> it badly needs to be redesigned.  (To wit, that functions that refer
> to the global you want to change need to be changed to accept it as an
> argument.)
>
> I think dynamic scpoing is a wholly bad idea, and simplifying a very
> misguided programming practice doesn't make it any less so.

You are of course right. Surprisingly though, it works very well for
Emacs. Passing arguments would *not* work in the context of Emacs.

Practicality-beats-purity-ly yr's,

-- 
Christian Tanzer                                         tanzer at swing.co.at
Glasauergasse 32                                       Tel: +43 1 876 62 36
A-1130 Vienna, Austria                                 Fax: +43 1 877 66 92






More information about the Python-list mailing list