The group you are posting to is a Usenet group. Messages posted to this group will make your email address visible to anyone on the Internet.
Your reply message has not been sent.
Your post was successful
From: Terry Reedy <tjre...@udel.edu>
Date: Wed, 13 May 2009 17:39:37 -0400
Local: Wed, May 13 2009 5:39 pm
Subject: Re: [Python-ideas] Default arguments in Python - the return - running out of ideas but...
Jeremy Banks wrote: At one time, 'as' was only a keyword in the context of import. > To someone who's a novice to this, could someone explain to me why it > has to be an existing keyword at all? Since not identifiers are valid > in that context anyway, why couldn't it be a new keyword that can > still be used as an identifier in valid contexts? For example (not > that I advocate this choice of keyword at all): > def foo(bar reinitialize_default []): # <-- it's a keyword here > That would be a syntax error now and if it were defined as a keyword > Is there a reason that this wouldn't be a viable approach? So it is 'viable'. But it was a bit confusing for programmers and messy implementation-wise and I think the developers were glad to promote 'as' to a full keyword and would be reluctant to go down that road again. _______________________________________________ You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
| ||||||||||||||