Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
zig 曾经有@maxValue来查询整数类型的最大值,但我认为它在几个版本前被删除了。有替代品吗?我找不到它。
您可以使用std.math.maxInt().
std.math.maxInt()