Reply to Steven -

Literals mean 10 or 20. Can you assign something to literal? No. But you can 
assign something to a variable to point to another value. That's why I said 
constants should behave like literals. Point is constants are names bind to a 
value. We can change the value but not the name to point to a different value. 
Simply think "const type *pointer" not "type *pointer const".

And by debugging I meant it would immediately be detectable if someone tries to 
change the constant or not. (Not a good argument in constant's favor though)
_______________________________________________
Python-ideas mailing list -- python-ideas@python.org
To unsubscribe send an email to python-ideas-le...@python.org
https://mail.python.org/mailman3/lists/python-ideas.python.org/
Message archived at 
https://mail.python.org/archives/list/python-ideas@python.org/message/35ZKTEAQEUHJEXC7YZJSSG5FUWXAM2T5/
Code of Conduct: http://python.org/psf/codeofconduct/

Reply via email to