Skip to main content

Tour of Mux

The video for “Tour of Mux” is in the works!

Welcome to the Tour of Mux! This interactive guide will walk you through the fundamental concepts of the Mux programming language.

Each page focuses on a single concept with a clear example and the ability to try it out in the Mux Playground.

What is Mux?

Mux is a statically-typed, reference-counted programming language designed to combine:

  • Python's readability - clean, simple syntax
  • Go's simplicity - easy to learn and use
  • Rust's type safety - powerful generics and pattern matching

How to Use This Tour

Each page in this tour covers one specific concept. Start from the beginning or jump to any topic that interests you. Every page has an interactive code playground where you can experiment with the code examples.

Topics

  1. Hello World - Your first Mux program
  2. Variables - Declaring and using variables
  3. Basic Types - int, float, bool, string
  4. Functions - Writing and calling functions
  5. Control Flow - If/else, loops, and pattern matching
  6. Lists - Working with ordered collections
  7. Maps - Key-value data structures
  8. Sets - Unique element collections
  9. Classes - Object-oriented programming
  10. Enums - Tagged unions and pattern matching
  11. Generics - Writing flexible, reusable code
  12. Error Handling - Result and Optional types
  13. Interfaces - Defining contracts
  14. References - Passing values efficiently
  15. Modules - Organizing your code
  16. Next Steps - Continue learning

Ready to start? Let's begin with Hello World!