Thank for expanding on that. As a Go newbie, I didn't see how Jan's 
response answered your question, but you made it clear.

On Sunday, November 18, 2018 at 4:34:00 PM UTC-6, gith...@gmail.com wrote:
>
> Thank you Jan,
> I read the spec a bit more carefully after you pointed it out and I now 
> understand that a constant and a non-constant value are treated differently 
> and that my examples above is an example of just this.
>
> "A constant value x can be converted to type T if x is representable by a 
> value of T" 
> In my example -65 is not representable in a byte (uint8)
>
> while for a non-constant, value x can be converted to type T if
> "x's type and T are both integer or floating point types" 
>
>

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