Open cgccuser opened 2 years ago
Not sure this is really possible...
Perhaps you could replace every constant/literal with get_literal_or_previously_assigned_value("foo")
and have a dictionary of these previously assigned "constants."
Ooh, that's an excellent hack!
Why should
1
always be1
? Why canTrue
never beFalse
? Why canNone
never be"everything"
? These arbitrary, fascist rules must not be enforced any longer. The Python developers may never listen to me, but I hope that the open-minded folks at Whython will. I propose allowing users to assign values to constants/literals/whatever they're called. No longer should"bad" = "good"
be an error! It should replace all occurrences of the stringbad
withgood
later in the program. Likewise for numbers and stuff.