Skip to content
Om
Install Get started Book Examples Tools Games Reference

Start

  • Overview
  • Install Om
  • Om on Windows in review
  • Getting started
  • Om for Rust programmers

Learn

  • Language tour (one page)
  • The Om Book
  • 1. Getting going
  • 2. A first project: grade report
  • 3. Common concepts
  • 4. Ownership
  • 5. Structs
  • 6. Enums and pattern matching
  • 7. Handling errors
  • 8. Collections
  • 9. Generics and traits
  • 10. Om's extras
  • 11. What's next
  • Om by Example
  • Hello, world
  • Variables and constants
  • Primitive types
  • Functions
  • Control flow
  • Structs and methods
  • Enums and match
  • Option, Result and ?
  • Vec
  • String and str
  • Ownership and borrowing
  • Drop
  • Box and recursive types
  • Generics
  • Traits and operator overloading
  • Pipeline operator
  • defer
  • Panics and assert
  • Exercises

Use

  • Tools
  • Games written in Om in review
  • Compiler errors
  • Playground planned

Reference

  • Reference and docs
  • Language reference
  • Rust parity checklist
  • Design
  • Compiler architecture

Exercise solutions

Try each exercise first. These are the fixed programs.

  • 01_variables.om
  • 02_functions.om
  • 03_if.om
  • 04_loops.om
  • 05_move.om
  • 06_borrow_mut.om
  • 07_structs.om
  • 08_match.om
  • 09_option.om
  • 10_result.om
  • 11_strings.om
  • 12_traits.om

Back to the exercises

Om is early and experimental. These pages describe the compiler on the main branch; anything marked in review is written but not merged yet, and planned is not built.
Dual-licensed MIT / Apache-2.0.