This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
(defparameter *infix-operator-order* '((!) (^ :reverse) (* /) (+ -) (> < >= <= =) (and) (or) (eql))) | |
(defparameter *infix-operator-set* '(+ * ^ - / ! = and or eql)) | |
(defparameter *unary-operator-set* '(!)) | |
(defparameter *infix-operator-hash* (let ((local-hash (make-hash-table))) | |
(setf (gethash '+ local-hash) '+) | |
(setf (gethash '* local-hash) '*) | |
(setf (gethash '^ local-hash) 'expt) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Python (3) to (Common) Lisp feature comparison | |
Memory model & typing: | |
CL & Python are both managed-memory languages. | |
Both are also dynamically-typed languages with strong type systems (no implicit type coercion), although Python's design leans toward "duck" typing, and CL's does not. |