Ideas for 1.0.0

Steven Miale (smiale@cs.indiana.edu)
Tue, 25 Jan 1994 21:47:33 -0500 (EST)

I've been thinking (uh oh, hide the kids!) and have a few ideas for,
if not 1.0.0, perhaps the next release.

Classes
-------

Right now, all class methods have to be defined in the "class" structure.
It should be possible to define it outside of the structure, like C++
allows. One possible syntax would be:

class foo:
def bar(self):
...

def foo.barney: ; new method for class foo
...

Lambdas
-------

Good idea. In fact, why can't the lambda be any type of expression - even
a function? It would allow more power, as long as the scoping was handled
correctly. Continuations might even be possible.

And speaking of continuations, how difficult would it be to have
coroutines in Python?

Macros
------

How difficult would it be to incorporate a simple macro expander in
Python? I remember experimenting with calling the c preprocessor,
and it seemed to work most of the time.

Thanks,

Steve