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.
| Type | Range / Representation | Safety Guarantees |
|---|---|---|
i32 | Signed 32-bit (-2^31..2^31-1) | Default integer; checked overflow and division-by-zero |
i64 | Signed 64-bit | Timestamps, SQLite row IDs, counters |
f64 | Finite IEEE-754 binary64 | Rejects NaN/±Inf; no implicit mixing with i64 |
byte | Unsigned 8-bit (0..255) | Raw bytes, UTF-8 byte lists, file buffers |
bool / mantik | true/false (dogru/yanlis) | Required in conditions; no truthy integers |
string / metin | Dynamic UTF-8 | Immutable 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);