In article <20040402105535.0526c27d.casey at zope.com>, Casey Duncan <casey at zope.com> wrote: > Or how about as? > > as classmethod: > > def jinkies(cls): > pass > > Which seems nice in the face of other declarations: > > as protected(some_permission): > > def zoinks(self, scooby, snack): > pass > > def jinkies(self): > pass > > or > > [protected_by(some_permission)]: > > def dangerous(self, risk): > pass I like this a lot. The effort to avoid new keywords, though laudable in many ways, comes at the cost of increased use of punctuation. I generally find punctuation harder to read than keywords. Also, it is usually incomprehensible to someone unfamiliar with the language. The relative lack of punctuation in python as compared, say, to C is one if its great strengths, to my mind. It is one reason Python reads so much like pseudocode (or did before some of the recent changes such as list comprehensions -- very useful but a classic example of the problem of overloading punctuation). I'd be very sad to see [] used for yet some other purpose. -- Russell
RetroSearch is an open source project built by @garambo | Open a GitHub Issue
Search and Browse the WWW like it's 1997 | Search results from DuckDuckGo
HTML:
3.2
| Encoding:
UTF-8
| Version:
0.7.4