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
This would generate an actor of KeyStoreActor<StructOnly, InMethod>, even though StructOnly is never passed through a message. This makes type inference painful - it breaks, and you then need a "phantom method" attached to your impl, and it also makes actors more painful to use.
Instead we should determine which generics actually get used in the actor's methods, and only lift those to the Actor.
The text was updated successfully, but these errors were encountered:
Currently the Actor struct generated will use all method generics and all struct generics.
In reality a struct generic that is not ever used in any methods will never show up in the message type, and therefor can be omitted from the actor.
We should remove these from the actor.
As an example
This would generate an actor of
KeyStoreActor<StructOnly, InMethod>
, even though StructOnly is never passed through a message. This makes type inference painful - it breaks, and you then need a "phantom method" attached to your impl, and it also makes actors more painful to use.Instead we should determine which generics actually get used in the actor's methods, and only lift those to the Actor.
The text was updated successfully, but these errors were encountered: