Core Types
Linea uses explicit type annotations with @.
var count @ int = 10
var price @ float = 19.99
var name @ str = "Linea"
var ok @ bool = True
var ids @ [int] = [1, 2, 3]
When to Use Explicit Types
- Public function interfaces
- Shared modules in
libs/ - Any value with non-obvious inferred type