Closed
Description
currently (as far as I know), there is no simple to get whether a value is known at compile time. For integer types, you can do @TypeOf(@clz(u8, val)) == comptime_int
, but this is really more of a hack. Since this check already exists as part of @clz
, it shouldn't be hard to implement into zig.