On Thu, Mar 6, 2008 at 4:15 PM, Carl Witty <[EMAIL PROTECTED]> wrote:
>
>  On Mar 6, 3:46 pm, David Harvey <[EMAIL PROTECTED]> wrote:
>  > I think the real problem here is that Sage by default has so many
>  > identifiers in the global namespace. I don't really like having so
>  > many names there. I think it was a deliberate design decision in
>  > python to keep the global namespace really clean, and I quite like
>  > it. Sage unfortunately (in my opinion) doesn't do that.
>
>  You could try "sage -min" ("do not populate global namespace").

Yes, David, you should stop complaining since I wrote "sage -min"
specifically for you.  :-)

Anyway, back to the suggestion of this thread, namely: "t is just that, I
would've expected that same thing from doing something like 'pi = 5'."
The language of Sage is Python.    The Python language simply does
not have any notion of a "protected variable name" like one has in
Mathematica, say.  Because of this, and the fact that we will absolutely
never ever change the core Python language for Sage, we don't have
to think about this problem any further (except for fun, or for workarounds).

This is one of the benefits of using the standard language -- Python -- for
Sage instead of our own custom language.  We get to focus on implementing
mathematical algorithms instead of worrying about language design.
This is a perfect example of that.

 -- William

--~--~---------~--~----~------------~-------~--~----~
To post to this group, send email to sage-support@googlegroups.com
To unsubscribe from this group, send email to [EMAIL PROTECTED]
For more options, visit this group at 
http://groups.google.com/group/sage-support
URLs: http://www.sagemath.org
-~----------~----~----~----~------~----~------~--~---

Reply via email to