Idea: Python Shorthand (was Re: Why a class when there will only be one instance?

Peter Maas peter.maas at mplusr.de
Thu May 27 10:59:22 EDT 2004


Ville Vainio wrote:
> You might want to create a preprocessor that adds "self" to all
> in-class definitions that have @, and convert @hei to self.hei. Voila,
> Ruby non-silliness.

This is an editor job. Good programming editors allow to expand
abbreviations, so there is no need to clutter the language
definition or write a preprocessor.

Mit freundlichen Gruessen,

Peter Maas

-- 
-------------------------------------------------------------------
Peter Maas, M+R Infosysteme, D-52070 Aachen, Hubert-Wienen-Str. 24
Tel +49-241-93878-0 Fax +49-241-93878-20 eMail peter.maas at mplusr.de
-------------------------------------------------------------------



More information about the Python-list mailing list