It feels awkward...I’ve always felt the limit should be removed after the innermost cast because that’s when the programmer has said “treat this as type A” and then says “treat an A as a B with every implication that a narrowing conversion causes.”
On Sun, Nov 18, 2018 at 9:55 AM Jan Mercl <[email protected]> wrote: > > On Sun, Nov 18, 2018 at 6:42 PM <[email protected]> wrote: > > It's consistent with the language specification ;-) > > A constant value x can be converted to type T if x is representable by a > value of T. > > https://golang.org/ref/spec#Conversions > > > -- > > -j > > -- > 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 [email protected]. > For more options, visit https://groups.google.com/d/optout. > -- *Michael T. [email protected] <[email protected]>* -- 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 [email protected]. For more options, visit https://groups.google.com/d/optout.
