On 2020-11-29, Simon King <simon.k...@uni-jena.de> wrote: > Hi Emmanuel, > > On 2020-10-28, Emmanuel Charpentier <emanuel.charpent...@gmail.com> wrote: >> Nope. This syntactic sugar is provided by `Maxima`'s and `Mathematica`'s >> readers, but not by Sage preparser. > > Would it be nice (and easy) to have in Sage? What prevents the preparser > from understanding "!"?
To be more precise: If I understand correctly, the preparser can be made to accept any syntax, provided that this syntax is in no conflict with valid Python syntax. There is a special meaning of "?" and "??" in Python, but I think there isn't a special meaning to "!". Sage accepts "!" at the beginning of a line, meaning that it executes a shell command, such as sage: !ls But it should be possible that the preparser could turn "(expression)!" into "gamma(expression+1)". Do people agree? Unfortunately I do not volonteer to implement it, I' not familiar with the innards of the preparser. Best regards, Simon -- You received this message because you are subscribed to the Google Groups "sage-support" group. To unsubscribe from this group and stop receiving emails from it, send an email to sage-support+unsubscr...@googlegroups.com. To view this discussion on the web visit https://groups.google.com/d/msgid/sage-support/rq07t2%24o75%242%40ciao.gmane.io.