oops, :name does break things, e.g

   if x :return


So, it could be ::name or  |name  or &name or !name or whatever.



From: gregory.smi...@sympatico.ca
To: python-dev@python.org
Subject: RE: [Python-Dev] Set the namespace free!
Date: Thu, 22 Jul 2010 16:24:27 +0000








I agree with the idea, but a far less radical change is needed to get the 
desired result.
The basic idea is this: it should be possible to use any name as an identifier 
in the syntax, including names
like 'while' and 'import'. But there is no need to mess up the entire language 
to allow this
(either by quoting all the identifiers, perl-style, or by marking the 
keywords). 

All that is needed is something like this:

foo = 7
:foo = 7   # exactly like foo=7
...
                                          
_______________________________________________
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