Hi! Unfortunately, annotations do not have something like a hierarchy or inheritance. You might have encountered similar syntax in frameworks like Spring, but that only works because it’s implemented manually in the framework.
In this case, you can implement this but it would require a compiler plugin (or as a PR to the compiler itself - the ObjCName annotation was implemented by the community as a PR if I remember correctly.
A side note: In the SKIE feature backlog, we have a task to look at operator overloading (for any operators), so in the future, this use case might be covered by SKIE, but there are no guarantees about when.
11/07/2023, 10:14 AM
thanks! I had a look at the PR. I’m considering to work on a new PR, but now for my project I’m just repeating the “callAsFunction” renaming
11/07/2023, 10:19 AM
Just to be sure you might want to discuss the PR with someone from the Native compiler team before you start working on it. (to ensure that you don’t spend a lot of time working on something that wouldn’t be possible to merge for some unpredictable reason)
11/07/2023, 12:58 PM
ok sure thanks, I’ll reach out to someone if I decide to proceed