"also" to balance "else" ?
hancock at anansispaceworks.com
Tue Jun 14 06:46:14 CEST 2005
On Monday 13 June 2005 11:09 pm, Ron Adam wrote:
> John Roth wrote:
> > "Ron Adam" <rrr at ronadam.com> wrote in message
> > news:H6pre.131217$IO.122689 at tornado.tampabay.rr.com...
> > The difficulty you're having with this is that else
> > is a very bad keyword for this particular construct.
> > I'd prefer something like "on normal exit" as
> > a keyword.
> It's not a difficulty. This is the point I was making. :)
> My suggestion is to use, also as the keyword to mean "on normal exit"
> 'also' do this.
Unfortunately, "also" is also a bad keyword to use for this, IMHO.
I don't find it any more intuitive than "else". (And since your idea
would break if-else code, I don't think it would be allowed, anyway).
I can't think of what would be a better keyword, though. :-/
Terry Hancock ( hancock at anansispaceworks.com )
Anansi Spaceworks http://www.anansispaceworks.com
More information about the Python-list