get it almost.
But I feel
var v = float32(1<<s)
is a little different to
var v float32 = 1<<s
For the former one, we think "1" can be assumed as an "int".
But anyway, I get the main point of the design.
It is just a wording accuracy problem.
On Wednesday, March 7, 2018 at 3:59:48 PM UTC-5, Ian Lance Taylor wrote:
>
> On Wed, Mar 7, 2018 at 12:54 PM, Volker Dobler
> <[email protected] <javascript:>> wrote:
> > Looks suspicious. Without crosschecking the Spec: Might be
> > a bug. File an issue?
>
> It's not a bug. See Andrey's reply.
>
> Ian
>
>
>
> > On Wednesday, 7 March 2018 21:39:32 UTC+1, [email protected] wrote:
> >>
> >> var s uint = 33
> >> var u2 = float64(1>>s) // illegal: 1 has type float64, cannot shift
> >
> > --
> > 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] <javascript:>.
> > For more options, visit https://groups.google.com/d/optout.
>
--
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.