6. 1.receive関数のcase節が長い class SequentialComputationActor(replyTo: ActorRef, settings: Settings) extends Actor with Computation1 with Computation2 with Computation3 with Computation4 with Computation5 { def receive: Receive = { case Request(x0) => { val x1 = compute1(x0, settings) val x2 = compute2(x1, settings) val x3 = compute3(x2, settings) val x4 = compute4(x3, settings) val x5 = compute5(x4, s
![すべてのアクター プログラマーが知るべき 単一責務原則とは何か](https://cdn-ak-scissors.b.st-hatena.com/image/square/9311e9743ebb509386b16c43a6967d5fbe6fc49f/height=288;version=1;width=512/https%3A%2F%2Fcdn.slidesharecdn.com%2Fss_thumbnails%2Fakkasingleresponsibilityprinciple-160202102903-thumbnail.jpg%3Fwidth%3D640%26height%3D640%26fit%3Dbounds)