-
-
Notifications
You must be signed in to change notification settings - Fork 1.4k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Some simple proposed renames #751
Conversation
Thanks @philip-peterson, agreed that public api renames are better to do now rather than post 1.0.
Thoughts? tag @hgzimmerman |
|
Fair enough points.
Thanks for the feedback! |
I'd agree with keeping |
@philip-peterson what's your plan for this PR? |
Planning to rebase and just apply the changes that were approved, just haven't gotten to it yet, will follow up soon though. |
1ac214e
to
844c28e
Compare
844c28e
to
2f0ffa6
Compare
This is a good point, but we have already deviated from actix by calling actors agents |
* AgentUpdate -> AgentLifecycleEvent * Responder::response -> Responder::respond * AgentLink::response -> AgentLink::respond * Agent::handle -> Agent::handle_input
In the process of trying to grok the definitions of types in
agent.rs
, a few renames seemed as though they may assist with reading the existing literature. Some of these I feel more strongly about than others, but it would be interesting to hear thoughts on these renames. Worth noting as well that I do not necessarily have the full context here, so these changes are offered in the spirit of sparking discussion.Some of these would result in publicly backwards-incompatible changes, though pre-1.0 would probably be the best time to implement them, as such. The renames are as following:
AgentUpdate
->AgentUpdateEvent
Agent::handle
->Agent::handle_msg_from_worker
AgentEnvelope
->AgentCarrier
- This one was confusing because arguably an Envelope could be something carried by an agent, as it evokes imagery similar to "packet." With this wording, it's more clear that the agent is being carried by the AgentCarrier.Responder::response
->Responder::send_response
- Since this function has no return value, it seems to be necessary for it to trigger a side effect. As such, I would propose a moreverb
-like name.Any thoughts would be appreciated!