I noticed a difference in return types:
std.math.maxInt(T)returnscomptime_intstd.math.floatMax(T)returnsT
I was wondering what the reasoning for this design is. Is there a specific technical constraint that prevents std.math.floatMax(T) from returning a comptime_float?
Currently, I’m using @as(comptime_float, std.math.floatMax(T)) to get the comptime_float value, which works fine. I’m mostly just curious about the design choice