Every story and comment from the Hacker News API, in a layout borrowed from 2001.
A comment on Having a Go - first time experience with Golang. Parent comment
The reason is that it is much easier to read for more complex types. eg. function pointer in C: int (*pt2Function)(float, char, char);
function pointer in Go: var pt2Function func(float32,byte,byte) int
Try writing a type that is a pointer to a function that returns a function in C. It's a bit mind bending.
There are no comments on this comment yet.
The reason is that it is much easier to read for more complex types. eg. function pointer in C: int (*pt2Function)(float, char, char);
function pointer in Go: var pt2Function func(float32,byte,byte) int
Try writing a type that is a pointer to a function that returns a function in C. It's a bit mind bending.