10/18/15 1
CSCI 2325 Principles of Programming Languages Types & Type System Reading: Ch 5 & 6 (Tucker & Noonan)
Type
u A type is a collection of values and
- perations on those values.
u Example
u Integer type has values ..., -2, -1, 0, 1, 2, ... and
- perations +, -, *, /, <, …
u Boolean type has values true and false and
- perations ∧, ∨, ¬.
u Question 1: Will the values be bounded? u Question 2: Will the types be pre-defined?