diff --git a/p.zig b/p.zig new file mode 100644 index 0000000..0339e75 --- /dev/null +++ b/p.zig @@ -0,0 +1,5 @@ +pub fn print(s: anytype) void { + const ur = [2]type{comptime_int, comptime_float}; + @import("std").debug. + print(if (@TypeOf(s) == ur[if (@TypeOf(s) == ur[0]) 0 else 1]) "{}" else "{s}", .{s}); +}