Type safe Scala actors
Is there any way to specify what type of message an actor can accept and give a compile error if anything tries to send it some other type? tenshi Not sure whether it answers your question, but I hope it will give you some ideas. Maybe you are searching for something like Typed Actors from Akka project: The Typed Actors are implemented through Typed Actors . It uses AOP through AspectWerkz to turn regular POJOs into asynchronous non-blocking Actors with semantics of the Actor Model. E.g. each message dispatch is turned into a message that is put on a queue to be processed by the Typed Actor