[Python-Dev] A Hygienic Macro System in Python? (original) (raw)
Guido van Rossum guido@python.org
Tue, 19 Mar 2002 19:32:22 -0500
- Previous message: [Python-Dev] A Hygienic Macro System in Python?
- Next message: [Python-Dev] A Hygienic Macro System in Python?
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
Just throwing out some thoughts.
There are several possible use cases for new customizable syntax:
resource allocation (lock.acquire(); try-finally: lock.release())
defining functions with special treatment (e.g. classmethods, properties)
defining class-like things (e.g. Zope-style interface declarations)
Maybe it's possible to invent a new statement that covers all of these? Certainly a macro system should support doing all these easily...
--Guido van Rossum (home page: http://www.python.org/~guido/)
- Previous message: [Python-Dev] A Hygienic Macro System in Python?
- Next message: [Python-Dev] A Hygienic Macro System in Python?
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]