Skip to content
Main site
Language CoreM2

Variables, Constants & Numeric Types

i32, i64, f64, byte, bool, string types, checked arithmetic overflow rules, and local declarations.

6 min readUpdated: v0.8.0-rc Reference

Declarations & Primitive Types

Local variables use either type inference (let / degisken) or leading explicit type syntax (i32, i64, f64, byte). Bindings declared with const / sabit are immutable.

TypeRange / RepresentationSafety Guarantees
i32Signed 32-bit (-2^31..2^31-1)Default integer; checked overflow and division-by-zero
i64Signed 64-bitTimestamps, SQLite row IDs, counters
f64Finite IEEE-754 binary64Rejects NaN/±Inf; no implicit mixing with i64
byteUnsigned 8-bit (0..255)Raw bytes, UTF-8 byte lists, file buffers
bool / mantiktrue/false (dogru/yanlis)Required in conditions; no truthy integers
string / metinDynamic UTF-8Immutable value strings; length returns UTF-8 byte count
hadid · EN
i32 count = 40;i64 big_id = 9000000000;f64 ratio = 3.5;byte ascii_a = 65;const APP = "Hadid";count = count + 2;print(APP);print(count);print(big_id);print(ratio * 2.0);print(ascii_a);