3 ms·
The comptime switch idea has been expanded into a full fledged implementation in the standard library! std.ComptimeStringMap https://github.com/ziglang/zig/bl
by kristoff_it 6y ago
The comptime switch idea has been expanded into a full fledged implementation in the standard library!
std.ComptimeStringMap
https://github.com/ziglang/zig/blob/master/lib/std/comptime_string_map.zig https://github.com/ziglang/zig/blob/master/lib/std/comptime_...
- lhorie 6y agoOh, very cool, I somehow missed that! Thanks!