3 ms·
Writing "x" in Lisp is like writing "x" in JavaScript. Writing "(x)" in Lisp is like writing "x()" in JavaScript, that is executing the function which was stor
by Viliam1234 7y ago
Writing "x" in Lisp is like writing "x" in JavaScript.
Writing "(x)" in Lisp is like writing "x()" in JavaScript, that is executing the function which was stored in the variable x.
- taeric 7y agoStrictly, this isn't right either. For example, (defun Foo (x) ... That is not calling a function x. Similarly, (let ((x 4))... Also not calling a function. It is just that, in lisp, you start a list of data with paren. In other languages, you activate a different part of the parser. It so happens that the default thing the evaluator does to a list is to apply it to a function given in the first spot.