Protect built in values pi and e
Attempting to change values of e and pi should produce error or warning.
pi = 5 should produce an error rather than "5"
e = 5
2 * e gives a confusing result to someone who doesn't know what e is.
1
vote
Anonymous
shared this idea
-
Thanks for the feedback. Basically, someone who doesn't know what "e" is would be confused why e = 5 creates an error (what's wrong with that?).
But someone who does know what e is wouldn't try to assign a variable to it. (Also, it may be that they don't need e as 2.71828... if they did, they wouldn't assign to it).
Having a warning is a good idea though.