Programming Paradigms CSI2120: Jochen Lang EECS, University of Ottawa Canada
Programming Paradigms CSI2120: Jochen Lang EECS, University of Ottawa Canada
Paradigms
CSI2120
Jochen Lang
EECS, University of Ottawa
Canada
Functional Programming in Lisp
1. Conditions (if-then-else)
2. Functions as data types
3. Recursions
4. Variables as pointers
5. Automatic garbage collection
6. A program is an expression (not a series of statements)
7. Symbols or atoms
8. Lists and trees
9. Complete language available at all times (read-eval-print)
Bottom window is
for running
programs
This is the classic
REPL Buffer
(fact 35)
=> 10333147966386144929666651337523200000000
is equivalent to
((lambda (x y) (+ x y)) 2 3)
In general: