In Java and most of Kotlin if we have a function, method or class, we have a natural hierarchical way of expressing their fully qualified name, e.g.
I’m looking for a way to express extension functions a similar way for writing technical articles. I want to find a way that’s unambiguous, simple/concise, and lexicographically sortable (like the above list).
What I thought about so far
For example we have (omitting paramters for simplicity, of course they would go in parentheses):
Note: the ambiguity is important to resolve, because we can have
Omitting the receiver:
results in ambiguity and doesn’t express well.
Prefixing with package:
conflicts with the traditional fully qualified names and suggests that the receiver is in that package, which is false information.
Qualifying the function name only looks promising:
but it looks like property accesses.
Any ideas, suggestions, comments are welcome.