On Wed, Oct 21, 2009 at 3:12 PM, Nasser Abbasi <n...@12000.org> wrote: > > > > On Oct 20, 8:44 am, finotti <luis.fino...@gmail.com> wrote: >> >> Sorry... My fault. I had a "max=20", which made "max?" give me: >> > > This is really bad that one can redefine a system function just like > this. > > This is also a problem in other systems such as Matlab, which causes > confusion specially for new users who do not know that there is a > system function or a constant called say pi or int or sum or max or > etc.., and then they overwrite by making a variable of the same name. > > I was hoping that Sage would have been designed to prevent such silly > things errors by having system functions and symbols be protected from > being redefined. But this might not be possible due to the nature of > the system and language used. > > In Mathematica, one thing I like about it, is that all its functions > and symbols are protected by default (and they all start with > Uppercase), so one can not do such a trivial mistake. > > --Nasser
Suppose I write a program in Mathematica 7.0 that happens to use a variable Foo. Then Mathematica 8.0 comes out and Foo is a function name that Mathematica decided to use. Does that mean my program is now broken? William --~--~---------~--~----~------------~-------~--~----~ To post to this group, send email to sage-support@googlegroups.com To unsubscribe from this group, send email to sage-support-unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/sage-support URL: http://www.sagemath.org -~----------~----~----~----~------~----~------~--~---