“接收者”的等效术语非 Objective-C 语言
在 Objective-C 中,当你有
[A something]
A 时,A 被称为“接收者”。我想知道其他面向对象语言中的等效术语是什么,特别是方法调用语言而不是消息传递语言。
我认为调用者/被调用者指的是实际方法本身,而不是对象。另外,我不确定“实例”,因为在我正在使用的语言中,Vala,您实际上可以调用结构和名称空间上的方法,而您不会将其归类为对象或实例。
人们的想法是什么?
In Objective-C when you have
[A something]
A is referred to as the 'receiver'. I am wondering what the equivalent term is in other object-orientated languages, particularly method calling ones as opposed to message passing ones.
Caller/Callee refers to the actual methods themselves I think, not the object. Also I'm not sure about 'instance' as in the language I'm working with, Vala, you can actually call methods on structs and namespaces, which you wouldn't classify as objects or instances.
What are people's thoughts?
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(2)
我认为最常见的术语就是“对象”。在Python 中,它传统上称为
self
。I think the most common term is just "the object". In Python it is traditionally called
self
.它是方法调用而不是消息传递,因此另一个常见术语(特别是在 Perl 黑客中)是invocant。
-- 半音阶,现代 Perl
It's method-invoking rather than message-passing, so another common term, particularly among Perl hackers, is invocant.
-- chromatic, Modern Perl