arhyth
Joined 8 years ago
Karma
13
Submissions
9
Member since
Feb 12
Joined 8 years ago
(1) var thing Thing json.Unmarshall(reader, &thing)
(2) var thing *Thing = new(Thing) json.Unmarshall(reader, thing)
in (1) thing is a variable for a value of type Thing, while in (2) thing is a variable for a Thing pointer
shouldn't thing (2) need to be dereferenced first?
anyone know of a talk/paper discussing this scheduling "hack" in more detail