Re:The Lisp Curse (2011)
by whitegrape on Thursday February 25, 2016 @01:43PM
(#11176642)
Additionally there's more than one macro system out there to allow for infix math in Lisp... And for non-mathy things, in Clojure at least you're often using the threading macro -> or some variation of do/doto.
Math papers usually use neither the first nor the second.
they use:
in the example you propose, and, reversing the operators so that the first style would have: and the second: math papers would usually have: So, I'm not sure "math papers do it differently" is the argument you want to use to advance your second syntax over the first.Of course, since in lisp + and * are variadic rather than binary operators, they are a lot more like the pi and sigma operators applied to sets in mathematics than binary operators. Which are prefix, not infix. So, there's that.