Every story and comment from the Hacker News API, in a layout borrowed from 2001.
A comment on Go says Wat. Parent comment
Until it doesn't.
type thing struct { foo *int } func f(x thing) { *x.foo = 42 } func main() { v := 1234 var x thing x.foo = &v fmt.Printf("x.foo before: %v\n", *x.foo) f(x) fmt.Printf("x.foo after: %v\n", *x.foo) }
There are no comments on this comment yet.
Until it doesn't.
Or maybe that is what you'd expect, but then slices shouldn't seem so mysterious.