Skip to content
Free public beta until December 4, 2026: every course is open, no card needed. After that, the first chapter of each course stays free and full access is a one-time $39 ($19 for up to 100 founding members chosen for helpful feedback). Your progress is kept. How the beta works

constant

A named value fixed when the program is compiled.

A const is a compile-time value with an explicit type; every use is replaced by the value.

Examples

  • const SECONDS_PER_HOUR: u32 = 60 * 60; is worked out at compile time; leaving out : u32 is an error, "missing type for const item".

Read the full section →