|
Re: ugly pie: a "var" keyword: msg#00053python.python-3000.devel
Antoine Pitrou wrote: > Le lundi 09 octobre 2006 à 12:49 +0200, Georg Brandl a écrit : > >> They wouldn't be "local" unless declared with "var", I assume. >> > > Besides, in a well-written program, you will mostly access local > variables (and attributes and methods), so let's make the clean common > case easy to type and unobstrusive, and the rare dirty case easy to > spot. Lots of "global" in a Python program immediately hint at dirty > code. > I totally buy this argument. -1 on my original proposal, now that I see how messy it can become. How about having "outer" replace "global?" Of course, it's been discussed to death - I believe it was called "lexical" or something. No reason we couldn't beat on that dead puppy some more, though. I may come up with a new property for my own use called "deprecated" or something: x = deprecated() when you want to throw errors at people (or yourself!) for not keeping up-to-date with changes to your class. Something like that ought to be standard. Neil |
|
| <Prev in Thread] | Current Thread | [Next in Thread> |
|---|---|---|
| Previous by Date: | Re: Sky pie: a "var" keyword: 00053, Brian Quinlan |
|---|---|
| Next by Date: | Re: Sky pie: a "var" keyword: 00053, Josiah Carlson |
| Previous by Thread: | Re: ugly pie: a "var" keywordi: 00053, Marcin 'Qrczak' Kowalczyk |
| Next by Thread: | Re: Sky pie: a "var" keyword: 00053, Neil Toronto |
| Indexes: | [Date] [Thread] [Top] [All Lists] |
| News | FAQ | advertise |