by the_af · 11y ago · 0 comments
The problem I see is in the sender, who doesn't know if the message makes sense for the receiver. Isn't this like programming in Smalltalk or Ruby, with their "doesNotUnderstand" or "method_missing"? How does this mesh with Scala's static typing, which aims to give you compile-time errors when you screw up?
case x: Warble => modifyTheWargle(x)
but it doesn't stop you from sending out a Wargle to the actor that only expects Warbles.