4 ms·
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) { }
by karma_fountain 14y ago
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) {
}
- mseepgood 14y agoNo, 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 http://tip.golang.org/ref/spec#Method_values
- karma_fountain 14y agoI see. Seems like a nice addition.