J2 proposal: keyword

Egbert Bouwman egbert.list at hccnet.nl
Mon Aug 23 13:56:34 EDT 2004


For me the keyword introduces an announcement about the function
to be defined next. So why not say 'announce', followed by the name
of the function about which you are anouncing something, for instance:

    announce bar:
        staticmethod 
        accepts(int, str) 
        returns(str) 
        published(True)
    def bar(count, input):
        return input * count

The function name after announce serves two purposes:
- it makes the program a lot more readable
- it makes it possible to put this announcement somewhere else,
  not immediately before the function.
  However doing this doesn't look like a good idea.
egbert  
-- 
Egbert Bouwman - Keizersgracht 197 II - 1016 DS  Amsterdam - 020 6257991
========================================================================



More information about the Python-list mailing list