> not supported in pure Python. However, it could add a lot of readability and
> programming easiness to Sage because a common task as a scientist is to
> manipulate and transform a lot of data and (I think) the most basic
> container to do that is a list.

IMHO, an expression like 1 + [2,3,4,5] is utterly confusing. Among all
the possible meanings it could have, [3,4,5,6] is the last that comes
to mind; if SAGE started to use such a syntax, you'd hear me and i
think many other users on this forum asking for a way to disable the
mechanism.

Just a thought : x + [a, b, c] and [a,b,c] + x should both be [x+a, x
+b, x+c] ?  but that's not even commutative, ergo impossible :
[1] + [12, 13] should be [ 1 + [12,13] ] = [ [13,14] ]
but it should also be [ [1] + 12, [1] + 13] = [[13], [14]]
and that ain't the same.

You could reply that the syntax should only apply to "numbers", but
that would be re-inventing the idea of the "vector" class, and i
thought re-inventing the wheel was against sage's philosophy.

On the other hand, [ 1 + x for x in [2,3,4,5]] appeals to both
mathematicians and geeks.

yours,
Pierre





--~--~---------~--~----~------------~-------~--~----~
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
URLs: http://www.sagemath.org
-~----------~----~----~----~------~----~------~--~---

Reply via email to