On Sat, Nov 24, 2018 at 4:31 PM Ugorji Nwoke <ugo...@gmail.com> wrote:

> Jan, you and I have the same understanding i.e. float <-> int is
obviously non-free, but I can't think of why int <-> uint will not be free.
However, I want someone with knowledge of the
 > compiler/runtime/codegeneration/SSA internals that can give me a
definitive answer.

Any correct compiler is an implementation of the language specification.
>From the language specification it follows that the compiler _may_ check
that - for example - 42 != 314 or 278 == 278 while performing the 'uint'
<-> 'int" conversion. It may also try to factor M4170639287. The question
is why to do so when nothing of that is mandated by the language
specification for a correct implementation?

The next reasonable step is to assume Occam's razor is a thing.

-- 

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

Reply via email to