What are pointers to pointers good for?

后端 未结 5 1612
难免孤独
难免孤独 2021-02-04 10:01

In the Go programming language; how can pointers to pointers become useful?

(Why are they not illegal if they are not really useful?)

5条回答
  •  一生所求
    2021-02-04 11:05

    Here is an example involving ** right in the standard library:

    https://github.com/golang/go/blob/cfe2ab42e764d2eea3a3339aac1eaff97520baa0/src/encoding/gob/decoder.go#L20

提交回复
热议问题