3 ms·
1. Reversing type and variable/parameter name is just aesthetics I guess but it still really bothers me. Perhaps there's a reason. The reason is that it is muc
by jesstaa 14y ago
1. Reversing type and variable/parameter name is just aesthetics I guess but it still really bothers me. Perhaps there's a reason.
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.