4 ms·
If math is a problem for the user, there is the option to use a modified parser. For example using an infix parser called by a readmacro: (defun foo (a b c
by lispm 15y ago
If math is a problem for the user, there is the option to use a modified parser. For example using an infix parser called by a readmacro:
(defun foo (a b c)
#I(
(-b + sqrt(b*b - 4*a*c)) / (2*a)
))
CL-USER 8 > (foo 1 2 3)
#C(-1.0 1.4142135)
- Confusion 15y agoSure, there are solutions and it's awesome that they're both possible and easy to use. I'm not arguing against Lisp; I just don't agree that its syntax is better. I agree it is not worse, if you survey a sufficiently large variety of cases. It may be bikeshedding, but I would not let 'blue is better than red, because the sky is blue' pass either.