News for hackers. Stuff that matters.
Re:Strict APIs vs. Forgiving APIs by postalrat on Wednesday October 28, 2020 @05:23PM (#24924289)
Javascript numbers (as in JSON) can safely represent integers much higher than a 32 bit integer.
Re:Strict APIs vs. Forgiving APIs by Joker_vD on Wednesday October 28, 2020 @05:50PM (#24924518)
Ha! Almost. You can get slight rounding errors at nanosecond resolutions, so be aware of this if you're using Go's time.Time internally and convert it to/from float64 seconds since Unix epoch.