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
Basically, to access an observer, we currently have to explicitly refer to the type of the observer when fetching it with match_name and friends. We can sidestep this by defining an ObserverRef type, e.g.:
In fact, we have this pattern in a few places (e.g. metadata) so maybe it would be better to define TypeRef and just make it a blanket impl (impl<T> TypeRef for T).
I think if we're doing this, we can have the ref also include the name, then we have a real 1:1 mapping of observer to the match, right? That'd be amazing
Uh oh!
There was an error while loading. Please reload this page.
We saw this here: #1886
Basically, to access an observer, we currently have to explicitly refer to the type of the observer when fetching it with
match_name
and friends. We can sidestep this by defining an ObserverRef type, e.g.:Then defining (default) in Observer:
And finally defining a
MatchNameRef
blanket:In this way we can avoid ever explicitly referring to type names, since the type will be encoded in the
ObserverRef
wrapper and inferred.The text was updated successfully, but these errors were encountered: