Il giorno mercoledì 22 giugno 2016 18:11:35 UTC+2, Bakul Shah ha scritto: > > I should've realized go automatically coerced float constants to ints. > Which is worse but never mind :-) > > There is no coercion. As someone has already written, constants in go are untyped: https://golang.org/ref/spec#Constants
Also, see this example: https://play.golang.org/p/zio-xoKjm6 > [...] Manlio -- 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. For more options, visit https://groups.google.com/d/optout.