How much is set in stone?
Nicholas FitzRoy-Dale
wzdd at lardcave.net
Tue Nov 6 14:39:51 EST 2001
On 5 Nov, Jive Dadson wrote:
> Chris Barker wrote:
>> If you start changing that too, you
>> really won't have Python anymore!!
>
> The changes I've proposed do not conflict in any way with the
> "Python-ness" of the language. If you don't put "option explicit" at
> the top of your module, it will behave exactly the same as it did
> before.
Good point! Based on that, here is my Python "Enhancement" proposal:
Let's make it so that placing "option disturbing" at the start of a
module turns on "C Mode". In this mode, Python's behaviour would be
modified in the following ways:
* Use of curly braces to delineate syntax blocks, rather than
indentation;
* The C ternary operator would be fully supported, as would
fall-through "switch" statements (as long as the type being
switch()ed is some kind of number, of course);
* Class support would be removed, but everyone knows all you
need is support for struct{} anyway. Structs could only
contain the types "IntType", "FloatType" and "StringType",
but when you get down to it it's all numbers anyway;
* We'd finally get our beloved "goto" statement.
Fortunately, none of this will affect the "Python-ness" of the language
- without "option disturbing", it will behave exactly as before!
--
- Nicholas FitzRoy-Dale
http://www.lardcave.net
I'm thinking of getting a pet cheese. I already have the cheese food.
- http://www.enweirdenment.org/cgi-bin/cube-hof.html
More information about the Python-list
mailing list