>> Along these lines, has anyone ever 'hacked' the python interpreter to >> do smalltalk like messaging, with segmented names? I've been tempted >> to try it myself. You wouldn't think it would be that hard. Maybe >> just an extra stage to convert segmented names to underscored ones, >> the same way that PyObjC names methods. But I'm no python expert, so >> I don't know what would be involved. > > I've been thinking about it. And the nice thing is that "[" cannot > currently > occur as the start symbol for an expression, and I think a NAME after > an > expression is also safe, so adding rules like > atom: '[' test methodarg* ']' > methodarg: NAME ':' test > should work... > > But getting Guido to incorporate this into the language is a different > story:-) Sure, I don't expect the whole python world to switch to smalltalk method naming just because I like it ;-) It would be fun to see though, if not practical. drew ---------------------------------- Dr. Drew McCormack Trade Strategist (www.trade-strategist.com) Stock Market strategy design platform for Mac OS X.
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