Re: [go-nuts] Re: Confusing Behavior When Compiling an Assignment Using a Map

2019-03-29 Thread Michel Levieux
Think of something like this https://play.golang.org/p/GyPlYefS7ZW (maybe the example could be simpler) --> ok means we found the most nested value or the least one? Le ven. 29 mars 2019 à 16:55, a écrit : > Yes, that is expected. The right hand side of the assignment is > `b[1].code`. That is a

[go-nuts] Re: Confusing Behavior When Compiling an Assignment Using a Map

2019-03-29 Thread jake6502
Yes, that is expected. The right hand side of the assignment is `b[1].code`. That is a single value. The "magic" that allows a two value return from a map lookup does not carry through to more complex expressions that use the value from that lookup. It would get confusing really fast if it did.