this week: structure code with types: tuples, records, arrays.
1. USER-DEFINED TYPES
primary use of types: document your code
- use
type type_identifier = some_typeto define a new type (type_identifieris synonym/abbrevation ofsome_type) type_identifiermust start with lowercase letter- already known types:
int, bool, string, char... - use
:to add …