3 Primitive Types


3. Primitive Types

The language provides several built-in primitive types for common values:

Integer Types

Floating Point Types

Other Types

Type Annotations

You can explicitly annotate literal types:

42:i32      // 32-bit integer
3.14:f32    // 32-bit float
'A'         // character

Pointer Types

Raw pointers (ptr) are a future feature. See Appendix F for the planned pointer type system.

Related: See Section 8 for the complete type system, including composite types and type inference. See Appendix H for detailed information about all types.