CS135 Lecture Notes - Programming Language
Document Summary
Imperative based on frequent changes to data. Based on computation of new values rather than transform old ones. Small toolbox with ability to construct additional required tools. When doing substitution with a function in a function, always first substitute inner functions with their values! Infix operators (+, --, etc. ) are used like functions -> parentheses no longer for order. E. g. (6 4)/(5 + 7) -> /( (6 , 4), + (5 , 7)) Functions and mathematical operators are treated same way in racket. 3 2 + 4/5 -> (+ (-3 2) (/ 4 5)) Extra parentheses are harmless in arithmetic expressions.