Final exam Flashcards
Lazy Evaluation in Haskell
Expressions are never evaluated until they are needed
Evaluation in imperative languages
Eager evaluation, kimited lazy evaluation on ‘and’ and ‘or’
Imperative Languages
Conditionals, loops, subroutines, variables are typically local to a subroutine
Object Oriented Language
describes objects and the ways they interact.
principal concern is sending messages to objects.
Classes and inheritance hierarchies
Functional languages
Focus on functions and the application of functions to values. Do not include loops, side-effect free, No modifiable global state
Logical Languages
Program is a collection of facts and inference rules.
Unification and backtracking to satisfy the goal.