On 01/26/12 17:00, William Stein wrote: > On Thu, Jan 26, 2012 at 1:51 PM, Michael Orlitzky <mich...@orlitzky.com> > wrote: >> On 01/26/12 16:36, William Stein wrote: >>>> >>>> Why *not* use it? >>> >>> The standard argument against preparser stuff like this is that you >>> have to be careful to not use it when writing .py code for the Sage >>> core library. But at least this matrix notation will always result >>> in a SyntaxError if used in Python code. >> >> A better reason is that, once implemented, someone has to maintain it >> forever. > > I consider my reason a better argument against it. Robert's > implemented something *very* similar in the past, namely > > [a..b] for lists and (a..b) for generators > > and we've never had any bugs/issues/maintenance problems with it at > all. Not once. But it is also a small issue that it doesn't work in > normal python.
I shouldn't have said "better." I started with something like "more general" but then backtracked once I said something about matlab matrices. -- To post to this group, send an email to sage-devel@googlegroups.com To unsubscribe from this group, send an email to sage-devel+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/sage-devel URL: http://www.sagemath.org