You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
We’ve used the word name to refer to the identifier that bridges ZiplineService instances across platforms. This issue tracks two changes.
1. Find another word for ’name’
This string is a formal identifier that must exactly match across two platforms. I want a word that conveys that! Here’s some ideas:
id: these are implicitly unique. One drawback of id is it’s unclear that these can be arbitrary user-created strings.
handle: this really fits the use-case. But does it feel too frameworkey?
2. Add a property to ZiplineService
Let’s take whatever word we pick above and make it a property of ZiplineService:
interface ZiplineService {
val id: String?
get() = null
fun close() {
}
}
This won’t be bridged! Instead we configure our generated stubs to return the ID that was bound.
Why?
I want to track pass-by-reference parameters to the point that they’re leaked in a DebugEventListener. Getting the ID into the parameter feels like the easiest way to match things up.
One challenge is this will only be non-null on the stub side of the call. That might be a dealbreaker?
The text was updated successfully, but these errors were encountered:
Thinking more about this . . . . I think that adding a property to ZiplineService won’t solve my problem anyway. I’m gonna close this and I might open a 2nd issue with newer thoughts...
We’ve used the word name to refer to the identifier that bridges
ZiplineService
instances across platforms. This issue tracks two changes.1. Find another word for ’name’
This string is a formal identifier that must exactly match across two platforms. I want a word that conveys that! Here’s some ideas:
id
: these are implicitly unique. One drawback ofid
is it’s unclear that these can be arbitrary user-created strings.handle
: this really fits the use-case. But does it feel too frameworkey?2. Add a property to
ZiplineService
Let’s take whatever word we pick above and make it a property of
ZiplineService
:This won’t be bridged! Instead we configure our generated stubs to return the ID that was bound.
Why?
I want to track pass-by-reference parameters to the point that they’re leaked in a
DebugEventListener
. Getting the ID into the parameter feels like the easiest way to match things up.One challenge is this will only be non-null on the stub side of the call. That might be a dealbreaker?
The text was updated successfully, but these errors were encountered: