How do you name whatever can be called on a class?...
# announcements
r
How do you name whatever can be called on a class? Like properties + methods + extensions. Basically what’s the word for “members + extensions of class X”?
l
"symbols for type X"?
n
Receivers of X?
🤔 2
👍 2
r
I’m pretty sure X is the receiver here
I was thinking about callee but I guess callee applies only to methods + extensions, I’m not sure you can call a property a callee
n
Yeah, X is the receiver for all those functions
I understand "receiver" refers to X but I feel like that word should help somehow because that's really what all those functions and properties have in common: "all the stuff that has X as a receiver". Just need a more elegant way to phrase it.
It's unfortunate there isn't a canonical word for functions that have receivers (senders? 😛 )
k
"The X API"
a
I believe the most accurate term is `callable`: https://kotlinlang.org/api/latest/jvm/stdlib/kotlin.reflect/-k-callable. You can have member callables and extension callables. Both members and extensions can be properties or functions.
👍 1
a
callables it is
n
Callables don't necessarily have a receiver, and the receiver doesn't necessarily have to be X. But the term does include both functions and properties, which is useful. But I still don't think it answers the original question on its own. "Callables that have X as a receiver"