Blyx v0.1.0-alpha is here! Read the release notes ->

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;
← Previous
Programming a Guessing Game
Next →
Functions & Closures