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 <0xj...@gmail.com> wrote:

>
> On Sun, Nov 18, 2018 at 6:42 PM <github...@gmail.com> 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 golang-nuts+unsubscr...@googlegroups.com.
> For more options, visit https://groups.google.com/d/optout.
>
-- 

*Michael T. jonesmichael.jo...@gmail.com <michael.jo...@gmail.com>*

-- 
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.

Reply via email to