Curriculum Foundations
module 1 of 7
Foundations
The "you already know this, just spelled differently" module for Rust. Entry points, printing, bindings, scalar types, control flow, functions, and the first taste of expressions. By the end, a TypeScript developer can read small Rust programs without yet being asked to solve ownership.
Themes
Rust prints with a macro, not a function. println! (note the
!) writes to stdout with a trailing newline; print! is the
no-newline variant. Format placeholders use {} inste…
Rust flips TypeScript's mutability default. Every binding starts
immutable; you opt in to mutability with let mut. Type
annotations come after the name (let x: i32 = 5), and th…
1.3
Scalar types
TypeScript gives beginners one number; Rust asks what number you
mean. This theme introduces signed and unsigned integers, usize,
f32 and f64, bool, char, explicit cast…
1.4
Control flow
Rust's if and loops look familiar, but they are expressions more
often than TypeScript developers expect. This theme covers if,
else if, loop, while, for, ranges, `brea…
Rust functions use explicit parameter and return types. Blocks can produce values, and the final expression has no semicolon. This is the first theme where a missing or extra semic…
Rust is learned with the compiler, not around it. Before ownership
starts, learners need the habit of reading error[E...], spans,
notes, and help: suggestions. Planned exercise…