Language Basics
Language Basics
Everything you need to write Luma programs — from declaring variables to organizing code across files. Start with the syntax overview for a quick tour, then dive into the topics that interest you.
Syntax & Structure
A quick tour of Luma’s syntax and conventions
Single-line and block comments
Declaring values with type annotations and the lock keyword
Types
Primitives, collections, optionals, and date/time types
How Luma determines types when you don’t write them explicitly
Functions
Custom Types
Define your own data types with named fields
Attach methods to structs
Define shared behavior across different types
Code Organization
Last updated on