2009/8/29 Fredrik Johansson <fredrik.johans...@gmail.com>: > > Hi, > > How about supporting n! as a shortcut for factorial(n)? This syntax is > very convenient and makes a huge difference for combinatorial > expressions with many factorials. M&M (Maple & Mathematica) allow this > notation, as do many scientific calculators. > > Although Python doesn't have any other postfix operators, I don't > think there's any ambiguity as ! is unused in Python except for the != > operator. The worst I can come up with is x!=y, but given that = > denotes assignment and not equality, this still only has one possible > meaning.
I seem to remember this coming up before, and the consensus being that we want to avoid adding stuff to the preparser unless it is really crucial. I could not find that discussion though, so I may be forgetting the arguments. John --~--~---------~--~----~------------~-------~--~----~ 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 URLs: http://www.sagemath.org -~----------~----~----~----~------~----~------~--~---