I think ZON should be capable of representing the semantics of IEEE floats, don’t you agree? If you expect a ZON formatted response from a server, what would you expect it to return for 0/0?
This also begs the question of if ZON should have error literals too… (error.InvalidRequest)
The reason why these literals exist in zon, but not in zig, is that in zig, you can simply do std.math.nan(type)/std.math.inf(type), which is impossible in zon. So as long as float types in zig can represent inf and nan (which is required as long as zig floats should be compatible with e.g. c floats) and zon floats are compatible with zig floats, converting inf or nan to zon should result in something. Another idea I just had (I’m not sure if I like it) is to have something like -1/0, 0/0, 1/0 as zon literals.