Re:The Value in Go’s Simplicity
by couchand on Saturday November 16, 2019 @11:15PM
(#21556534)
Well, in Rust you could do:
I think you would say the latter shadows the former...
[ Parent
| on HN ]
Indeed, because semantically there is a syntactically implicit scope for every let binding. For example, in that case, the outer a is dropped after the inner a, just as if the second a had been inside of a block. There may be multiple syntactic ways to introduce a new scope.