26 May
2021
26 May
'21
2:27 a.m.
On Wed, May 26, 2021 at 07:14:41AM -0000, Shreyan Avigyan wrote:
Reply to Steven D'Aprano:
But you've said that you want constants to be capable of being rebound to a new value. So your constants are identical to variables.
No, not at all. Actually to be clear, constants are supposed to behave like literals but in implementation they are nothing more than names that are bind to a value.
I don't know how you think literals behave and you haven't told us! "Nothing more" than a name bound to a value is a variable. Why do you call it a constant if it is nothing more than a variable? -- Steve