14 Syntax and Semantics of Refs

References & Location

Locations are values, but they are not expressions (No pointer arithmetic 😭). We cannot directly write a value

Assignment

The type of a location cannot change

Unit

Dereference