アットウィキロゴ

Example11.4

「Example11.4」の編集履歴(バックアップ)一覧はこちら

Example11.4 - (2011/02/24 (木) 08:55:57) の1つ前との変更点

追加された行は緑色になります。

削除された行は赤色になります。

#co(){ 11.4 Summary We have seen in this chapter the constructs that let us model state in Scala - these are variables, assignments, and imperative control structures. State and Assignment complicate our mental model of computation. In particular, referential transparency is lost. On the other hand, assignment gives us new ways to formulate programs elegantly. As always, it depends on the situation whether purely functional programming or programming with assignments works best. } ** 11.4 まとめ この章では、Scala において状態をモデル化する手段 --- 変数、代入、そして手続き的な制御構造 --- を見てきました。状態と代入は、計算に関する我々のメンタルモデルを複雑にします。特に、参照透過性は失われます。一方で、代入はプログラムをエレガントに書く新しい方法を提供します。いつものことですが、純粋関数型プログラミングと代入を使うプログラミングの、どちらがベストであるかは状況によります。 #center(){[[前ページ>Example11.3]] [[ 11 章>Chapter 11 Mutable State]] [[目次>ScalaByExample和訳]] [[次ページ>Chapter 12 Computing with Streams]]} ---- #comment
#co(){ 11.4 Summary We have seen in this chapter the constructs that let us model state in Scala - these are variables, assignments, and imperative control structures. State and Assignment complicate our mental model of computation. In particular, referential transparency is lost. On the other hand, assignment gives us new ways to formulate programs elegantly. As always, it depends on the situation whether purely functional programming or programming with assignments works best. } #setmenu2(ex-r-menu) ** 11.4 まとめ この章では、Scala において状態をモデル化する手段 --- 変数、代入、そして手続き的な制御構造 --- を見てきました。状態と代入は、計算に関する我々のメンタルモデルを複雑にします。特に、参照透過性は失われます。一方で、代入はプログラムをエレガントに書く新しい方法を提供します。いつものことですが、純粋関数型プログラミングと代入を使うプログラミングの、どちらがベストであるかは状況によります。 #center(){[[前ページ>Example11.3]] [[ 11 章>Chapter 11 Mutable State]] [[目次>ScalaByExample和訳]] [[次ページ>Chapter 12 Computing with Streams]]} ---- #comment

表示オプション

横に並べて表示:
変化行の前後のみ表示:
ツールボックス

下から選んでください:

新しいページを作成する
ヘルプ / FAQ もご覧ください。