LearnTypes

Types

Add type notes where they help and let Musi infer the rest.

A type tells you what kind of value a name holds. Int is a number. String is text. A record type can say which fields exist.

Types are like labels on boxes. The label does not make the thing. It helps you and Musi know what belongs inside.

This part teaches type annotations, inferred types, optional and fallible types, callable types, generics, and type checks.

Use type notes where they make code clearer. Let Musi infer the rest when the code already says enough.