[me] > From: "Samuele Pedroni" <pedronis@bluewin.ch> > > > but it seems it would be harder for newbies to learn and use). > > > > to be fair I don't think that Guido suggested to add a iterclose builtin to > the > > language, OTOH nobody would be stopped to write and use it in its code, > > basically short of community style guides and pressure both: > > > > do iterclose(open('blah.txt','rb')): (line): > > ... > > > > do myfile = autoclose(open('blah.txt','rb')): > > for line in myfile: > > ... > > this one is wrong, it would have to be (assumed the current proposals): > > do autoclose(open('blah.txt','rb')): (myfile): > for line in myfile: > ... > I think that the fact that the above is wrong and the latter is right, is very symptomatic of the fact that the '=' in do lval = expr: suite is rather ambiguous.
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