You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Float literal in a const is rejected: "expression kind 21 is not comptime-evaluable yet" #1668
A top-level const with a float literal initializer fails to compile. Integer consts work. This forces float constants to be declared as integers and cast at every use site.
Hit while factoring the arena rectangle in a raylib game (https://github.com/withlang-dev/wipe) into named constants. The workaround in use is pub const ARENA_LEFT: i32 = 24 plus ARENA_LEFT as f64 at each use, which is what the project already did for WIDTH and HEIGHT. The diagnostic also leaks an internal expression-kind number rather than naming the construct.
Activity
Replace magic integers with enums and tidy shared constants
Comptime floats: a float literal is a comptime value (#1668); `&str a…
Paper cuts: Vec ranges as []T views, let-else return inference, usize…
ehartford commentedon Sep 26, 2026
Fixed on main by #1702 (55739d4); battery green, pinned by the behavior tests named in the PR.