Slide 77
Slide 77 text
参考資料① 書籍と記事
Programming Rust, 3rd Edition
(Early Release
)
(Jim Blandy, Jason Orendorff, Leonora F. S. Tindall
著, O'Reilly, Rust 2024
Edition
対応, 2026
年7
月参照)
第9
章 構造体(タプル構造体とニュータイプ)
第10
章 列挙型とパターン(代数的データ型と match
)
Domain Modeling Made Functional
(Scott Wlaschin
著, Pragmatic Bookshelf, 2018
)
第4
章 Understanding Types
(choice types / discriminated unions
)
第5
章 Domain Modeling with Types
(Constrained Values, Modeling with Choice Types
)
第6
章 Integrity and Consistency in the Domain
(smart constructors /
不正な状態を表現不可能にする / "compile-time unit
tests"
)
"Designing with Types"
シリーズ(Scott Wlaschin, F# for Fun and Profit,
全13
回)
代表記事:
「不正な状態を表現不可能にする」
シリーズ目次: fsharpforfunandprofit.com/series/designing-with-types/
"Parse, don't validate"
(Alexis King, 2019
)
lexi-lambda.github.io/blog/2019/11/05/parse-don-t-validate/
"Rust
でも学べる関数型ドメイン駆動設計"
(nwiizo, 2026
)
syu-m-5151.hatenablog.com 77