FAQ
For example, for

var s *[]int
var t *string


why s[10], t[2] are not shorthands for (*s)[10] and (*t)[2], respectively?
I cannot think out any confusions here. And if

var s *[]*int


then *s[10] only means *((*s)[10]), still no confusions.

Is there any special reason. Or just an unimplemented feature? Can I
suggest it for the future version?

David

--

Search Discussions

Discussion Posts

Follow ups

Related Discussions

Discussion Navigation
viewthread | post
posts ‹ prev | 1 of 6 | next ›
Discussion Overview
groupgolang-nuts @
categoriesgo
postedJan 25, '13 at 3:45p
activeJan 26, '13 at 12:15p
posts6
users5
websitegolang.org

People

Translate

site design / logo © 2021 Grokbase