4 ms·
This is dubious, given that Common Lisp was the first standardized object-oriented language. See the Common Lisp Object System. Whatever you have used, it can'
by lispm 12y ago
This is dubious, given that Common Lisp was the first standardized object-oriented language. See the Common Lisp Object System.
Whatever you have used, it can't be Common Lisp, since Common Lisp is a multi-paradigm language with imperative, object-oriented and functional elements blended together.
Consider this code snippet:
(defparameter *persons* '((john 15) (maria 12) (agnes 20)))
(defparameter *number-of-persons* 0)
(defun count-persons (persons)
(dolist (person persons)
(incf *number-of-persons*))
(format t "~%The number of persons is ~a."
*number-of-persons*))
What do we see:
* mutable variables
* procedures with side effects
* imperative loop with DOTIMES
* imperative setting of varibles
* sequences of imperative statements
Doesn't look like one is limited to 'functional style' in Common Lisp...