On Wed, Jul 8, 2020 at 4:50 PM 'simon place' via golang-nuts < golang-nuts@googlegroups.com> wrote:
> wait a minute, so this... https://play.golang.org/p/x5SQVgSJsIs > > could return anything! > In theory, yes, because negative zero can't be represented as an int or uint. In practice, I would expect zero. At least on any platform using the IEEE 754 standard due to how the sign is encoded by that standard and the instructions for converting such a value to an int behave. Of the five magic values that is the only one you can (probably) safely handle using the straightforward conversion. -- Kurtis Rader Caretaker of the exceptional canines Junior and Hank -- You received this message because you are subscribed to the Google Groups "golang-nuts" group. To unsubscribe from this group and stop receiving emails from it, send an email to golang-nuts+unsubscr...@googlegroups.com. To view this discussion on the web visit https://groups.google.com/d/msgid/golang-nuts/CABx2%3DD8yiA6G9zXKV%3D88JUwZJzB%2BpvpjXf1PhN_SruraNoyuXw%40mail.gmail.com.