Skip to content

Remove Receive 'Msg' type, add actor trait bound#100

Open
mkj wants to merge 1 commit intoriker-rs:masterfrom
mkj:noreceivemsg
Open

Remove Receive 'Msg' type, add actor trait bound#100
mkj wants to merge 1 commit intoriker-rs:masterfrom
mkj:noreceivemsg

Conversation

@mkj
Copy link
Copy Markdown
Contributor

@mkj mkj commented Jun 1, 2020

The Msg associated type of Receive trait isn't needed if we require that it's an Actor. It reduces a fair bit of boilerplate. The downside I see is that this forces Receive to be an Actor, though is that a problem?

This is more of a query than a solid pull request, but it's easier to show code examples here than an issue. There might be reasons why it won't work, of course it breaks compatibility too.

@leenozara
Copy link
Copy Markdown
Contributor

Hi @mkj I do think you're correct - Receive is just Actor. Since this is a change across core code I need to check the overall impact. Will come back to this in the next day or two.

@elenaf9
Copy link
Copy Markdown
Contributor

elenaf9 commented Jan 11, 2021

@leenozara what is the current status on this?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants