Replies: 2 comments
-
|
I'm not sure if anyone is going to take this on but if they want, it will be reviewed. For me, people who want to use Pekko and Java for new actors, they should consider using Java Records for the message definitions, new style Java switch statements for matching the messages and typed actors instead of classic actors. Example generated by AI. |
Beta Was this translation helpful? Give feedback.
0 replies
-
|
Thank you, that is indeed a nice and clean way, especially the exhaustive pattern matching! |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
-
I wonder whether boilerplate could be reduced by annotations which allow writing an actor in a short, but precise and clear way?
Maybe something like this:
Of course, there is more to consider like switching behaviors (FSM), handling signals, etc... but it should be possible to come up with useful annotations to shorten the required LoC for (standard) actors.
People using Spring are used to annotation magic anyway :-)
What is the general opinion of this direction of thought from the maintainers?
Thanks and best regards!
Beta Was this translation helpful? Give feedback.
All reactions