4 ms·
Even indenting properly goes a long way: (/ (+ (- b) (sqrt (- (* b b) (* 4 (* a c)))) (* 2 a)) The trick is that a tra
by gilch 4y ago
Even indenting properly goes a long way:
(/ (+ (- b)
(sqrt (- (* b b)
(* 4 (* a c))))
(* 2 a))
The trick is that a trail of any number of `)`'s should also end the line. Like any language, it takes some getting used to, but I find this tree structure perfectly readable now.
Sure for the four-function calculator operations, operator precedence levels are a reasonable notation, but when you can define your own functions, and your programming language now needs a dozen precedence levels, it becomes hard to read. Lisp is completely unambiguous.