Y
Hacker News
new
|
ask
|
show
|
jobs
by
jasonhansel
950 days ago
One answer would be to provide something like a GetPointer() method which, if the inner pointer is nil, creates a new struct of type T and returns a pointer to it.