Blyx v0.1.0-alpha: AI-Native Systems Language with Rust Runtime •View on GitHub

Chapter 3

Common Programming Concepts

This chapter covers concepts present in almost every programming language: variables, scalar & compound data types, functions, and control flow.

3.1 Variables and Mutability

By default, variables in Blyx are immutable. This is one of many nudges Blyx provides to write code that takes advantage of safety and easy concurrency.

let x = 5;               // Immutable
let mut y = 10;          // Mutable
y = 15;
Programming a Guessing GameFunctions & Closures