ネットが軽い。 Larry and Damianの話が行われています。今日も遅刻して、着いた時には弾さんの質問時間になっていた。残念。 関数型とOOPの話の続き。ちょっと議論をしてみたのだけれども、例えばこういうプログラムを考えてみよう。 class Mover1{ int x; public Mover(int x){ this.x = x; } public void move(){ this.x++; } public int getX(){ return this.x; } } さて、このコードを二つの方針で書き直してみる。 class Mover2{ int x; public Mover(int x){ this.x = x; } public Mover2 move(){ this.x++; return this; } public int getX(){ return t

