On 4/13/07, Nick Alexander <[EMAIL PROTECTED]> wrote:
> Just a heads up: the Python folks debated immutable vs. mutable sets
> at some length.  A little google-fu might be in order to address the
> issues they had with mutable sets and the language.

Good point.  See the docs here:
   http://docs.python.org/lib/types-set.html
In particular, we should probably use the frozenset type to implement
immutable sets.

That said, I totally disagree with carrying their design over to SAGE, i.e.,
having mutable and immutable versions be different types -- having mutability
be a property is better.   For matrices having separate types would
lead to a maintenance and
implementation nightmare, and the same probably goes for sets, since
in SAGE there
are many many different types of sets, and will likely be many many more.

>
> Nick
>
> >
>


-- 
William Stein
Associate Professor of Mathematics
University of Washington
http://www.williamstein.org

--~--~---------~--~----~------------~-------~--~----~
To post to this group, send email to [EMAIL PROTECTED]
To unsubscribe from this group, send email to [EMAIL PROTECTED]
For more options, visit this group at http://groups.google.com/group/sage-devel
URLs: http://sage.scipy.org/sage/ and http://modular.math.washington.edu/sage/
-~----------~----~----~----~------~----~------~--~---

Reply via email to