|
|
|
|
|
by majewsky
3219 days ago
|
|
I've never thought of that syntax as conveying a particular statement. They could also have done func *Receiver.method(arg int)
instead of func (r *Receiver) method(arg int)
The advantage is that you get to name the receiver instead of having to use a keyword name like `this` or `self`. I've come to like this design decision. |
|
self, at least if you're talking about Python, is not a keyword, it's just a convention. You can use whatever your want.