Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
我想使用纯 scala 代码(没有副作用)作为 akka 演员系统的不可变消息。我应该将scala代码翻译成什么形式?字符串表示是唯一正确的方法吗?
您可以简单地发送一个 scala.FunctionX 作为消息。
object Foo { val f = (s: String) => s.toInt } someActor ! Foo.f