4 ms·
Did Lisp improve the IF statement? Certainly. But here's John freakin' McCarthy citing Fortran's IF statement which he had used. That means Lisp didn't invent t
by CalChris 3y ago
Did Lisp improve the IF statement? Certainly. But here's John freakin' McCarthy citing Fortran's IF statement which he had used. That means Lisp didn't invent the IF statement. Lisp invented better syntax.
http://jmc.stanford.edu/articles/lisp/lisp.pdf http://jmc.stanford.edu/articles/lisp/lisp.pdf
- lispm 3y agoHe invented the conditional expression. (print (cond ((> a 10) "a is larger than 10") ((> a 20) "a is larger than 20") (t "a is smaller than or equal to 10"))) COND takes zero or more conditional expressions and returns a value.