On 4/29/05, Reinhold Birkenfeld  wrote:
> Date: Sat, 30 Apr 2005 00:53:12 +0200
> From: Reinhold Birkenfeld <[EMAIL PROTECTED]>
> Subject: [Python-Dev] Re: PEP 340 - possible new name for
>        block-statement
> To: python-dev@python.org
> Message-ID: <[EMAIL PROTECTED]>
> Content-Type: text/plain; charset=ISO-8859-1
> 
> 
> FWIW, the first association when seeing
> 
> block something:
> 
> is with the verb "to block", and not with the noun, which is most displeasing.
> 
> Reinhold
> 

Which is the reason I thought of "bracket" instead.  Although it's also a
noun and a verb, the verb doesn't imply "stop" like block does.  However,
because one of the main features of python is that it's easy to read,
adding "with" to it makes it very clear as in "bracket_with".  Ugly at
first, but that's just a matter of familiarity.  You never notice that your
ugly friend is really that ugly anymore, right?

bracket_with foo(arg1, arg2) as f:
  BLOCK

seems very explicit to me.

However, I do prefer no keyword at all and that would be my first choice,
but if we have to choose a keyword, "block" has that "stop" connotation
that will certainly confuse more than a few but I doubt people would
go with "bracket_with."  

I certainly hope no-keyword is possible.

-- 
Luis P Caamano
Atlanta, GA USA
_______________________________________________
Python-Dev mailing list
Python-Dev@python.org
http://mail.python.org/mailman/listinfo/python-dev
Unsubscribe: 
http://mail.python.org/mailman/options/python-dev/archive%40mail-archive.com

Reply via email to