On Monday 20 October 2003 05:51 pm, Moore, Paul wrote: ... > Did I miss April 1st? We seem to be discussing the merits of > > f of arg > > as an alternative form of > > f(arg) > > While I'm sure Cobol had some good points, I don't believe that this was > one of them... I may disagree, but it's sure too late to redesign Python today in that respect;-). > If there is any merit to this proposal, it's very rapidly being lost in > examples of rewriting things which are simple function calls. Agreed, and I pointed that out in my latest msg to this thread -- just like e.g. rewriting the simple function call mydict.has_key(k) as the cool, readable "k in mydict", quite identically rewriting the simple function call sum(numbers) as the cool, readable "sum of numbers" would be mere syntax sugar, "more than one way to do it", etc. So, limiting the discussion to Greg's original idea of using 'of' for iterator comprehensions will be wiser and more prudent (just like one would never dare suggesting 'in' as an alternative to calling has_key, say:-). That 'of' thingy is just SO pretty it's making some of us lose their heads, that's all...!-) Alex
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