Re:Introduction to Go 1.1
by karma_fountain on Tuesday March 26, 2013 @04:34AM
(#5441908)
Yes, I wondered about that. Is it just that the function
func (w *Writer, int n) {
}
is actually a method, like: func (w *Writer) Anon(int n) {
}No, it means that it is now possible to use methods as first-class values as well, just like functions: http://tip.golang.org/ref/spec#Method_values
Re:Introduction to Go 1.1
by karma_fountain on Tuesday March 26, 2013 @04:47AM
(#5441941)
I see. Seems like a nice addition.
I'm not sure if I understand what "method values" are though