Could Emacs be rewritten in Python?
Michael Hudson
mwh at python.net
Mon Apr 14 10:28:31 EDT 2003
Alexander Schmolck <a.schmolck at gmx.net> writes:
> Michael Hudson <mwh at python.net> writes:
>
> > Paul Foley <see at below.invalid> writes:
> >
> > > [It should do that for lexical variables, too...conflating binding and
> > > assignment the way Python does is a major design error, but it's too
> > > late to fix it now]
> >
> > I'm unconvinced about the "major"... but anyway: how would *you* do
>
> So am I, but...
>
> > it? It seems unfeasible syntactically, for starters.
> >
>
> ... what's wrong with e.g:
>
> def bar():
> # declares locals, similar to ``global``
> var a,b,c = 3
> x = 3 # error
> a = 4 # OK
>
> or
>
>
> def bar():
> let x=3, y=4:
> print x, y # OK
> x, y # ERROR
>
> ?
Requiring declarations of all variables would be a HUGE change to
Python, IMHO.
Cheers,
M.
--
That one is easily explained away as massively intricate
conspiracy, though. -- Chris Klein, alt.sysadmin.recovery
More information about the Python-list
mailing list