Currently, you can re-define the pre-defined constants e, i and pi.
First funny thing is that these constants are handled differently: pi and e are displayed in bold, i isnt.
-
The fact that e or pi have been re-defined is visible by italic font and lack of bold weight.
-
Re-definition of i isnt reflected by italic font
i is used in display of complex results as a shortcut for sqrt(-1) regardless whether it has been re-defined or not.
The change to italic for user defined names helps a bit in the case of e and pi but not in the case of i
My proposal is to strictly handle e, i and pi as immutable constants
-
mark them by non-italic font. I would not mind them being bold or blue in order to make it easier to distinguish.
-
If the user defines variables with the same name, these should be independent symbols marked by italic font.
-
Provide some shortcuts for these constants (like the already existing Ctrl-Shift-p for pi) or treat them as a unit by a leading semicolon
The benefit would be that we would NOT ANY MORE face issues related to constant's overwrite over again and again in the forum and could remove some of the current survival rules from the list (ideally there should be no survival rules due to lack of pitfalls).
PS: Guess how I re-defined numeric constant 2! Hint: nothing wrong with that, it's not a bug, just a nasty way to confuse the reader.