News for hackers. Stuff that matters.
Re:Partial Operator Precedence by boxed on Thursday November 05, 2026 @02:54AM (#50376377)
I like the compromise, although I still think operator precedence in itself is evil :P Lisp kinda made the right call by mistake.
Re:Partial Operator Precedence by jraph on Thursday November 05, 2026 @03:32AM (#50376666)
Made the right call, yes, but at the right time and with the right parameters above all!
Re:Partial Operator Precedence by tgv on Thursday November 05, 2026 @03:47AM (#50376792)
So did Forth, but that's no guarantee for readability. APL got the worst of both worlds, IMO.
Re:Partial Operator Precedence by xscott on Thursday November 05, 2026 @04:02AM (#50376900)
You're not wrong, but

    -b + sqrt(b*b - 4*a*c)/(2*a)

    (+ (- b) (/ (sqrt (- (* b b) (* 4 a c)) (* 2 a))))