Upgrade to Pro
— share decks privately, control downloads, hide ads and more …
Speaker Deck
Sign up for free
Menu
Search
Features
All features
Private URLs
Password Protection
Custom URLS
Scheduled publishing
Remove Branding
Restrict embedding
Deck Collections
Notes
Features
All features
Private URLs
Password Protection
Custom URLS
Scheduled publishing
Remove Branding
Restrict embedding
Deck Collections
Notes
Explore
Featured decks
Featured speakers
Programming
Technology
Storyboards
Explore
Featured decks
Featured speakers
Programming
Technology
Storyboards
Pricing
Search
Sign in
Sign up for free
20250123 関数型DDD 3
Search
saka
December 24, 2025
11
0
Share
Embed
Copy iframe code
Copy JS code
Copy link
Start on current slide
20250123 関数型DDD 3
saka
December 24, 2025
More Decks by saka
See All by saka
20250304 関数型DDD 6
sakatttttta
0
25
20241219 Github Actionsの面倒いところ
sakatttttta
0
18
20250109 関数型
sakatttttta
0
11
20250116 関数型DDD 2
sakatttttta
0
11
20250206 関数型DDD 4
sakatttttta
0
11
20250213 関数型DDD 4
sakatttttta
0
12
20250220 Hono カスタムfetch
sakatttttta
0
10
20250225 関数型DDD 5
sakatttttta
0
9
20250311 関数型DDD 7
sakatttttta
0
9
Featured
See All Featured
Color Theory Basics | Prateek | Gurzu
gurzu
1
490
Ethics towards AI in product and experience design
skipperchong
2
430
技術選定の審美眼(2025年版) / Understanding the Spiral of Technologies 2025 edition
twada
PRO
120
120k
SEO in 2025: How to Prepare for the Future of Search
ipullrank
3
3.9k
Redefining SEO in the New Era of Traffic Generation
szymonslowik
1
480
Getting science done with accelerated Python computing platforms
jacobtomlinson
2
540
Self-Hosted WebAssembly Runtime for Runtime-Neutral Checkpoint/Restore in Edge–Cloud Continuum
chikuwait
0
890
RailsConf & Balkan Ruby 2019: The Past, Present, and Future of Rails at GitHub
eileencodes
141
35k
Improving Core Web Vitals using Speculation Rules API
sergeychernyshev
21
1.7k
A Modern Web Designer's Workflow
chriscoyier
699
190k
Organizational Design Perspectives: An Ontology of Organizational Design Elements
kimpetersen
PRO
1
850
CoffeeScript is Beautiful & I Never Want to Write Plain JavaScript Again
sstephenson
162
16k
Transcript
ؔܕDDDଓ͖
લճ
୯७ܕ
type ProductCode = ProductCode of string
type ProductCode = { Type: "ProductCode"; value: string; };
ܕΛ͓͏
type OrderQuantity = | UnitQuantity of int | KilogramQuantity of
decimal
let anOrderQtyInUnits = UnitQuantity 10 let anOrderQtyInKg = KilogramQuantity 2.5
let printQuantity aOrderQty = match aOrderQty with | UnitQuantity uQty -> printfn "%i units" uQty | KilogramQuantity kgQty -> printfn "%g kg" kgQty
type OrderQuantity = | UnitQuantity of int | KilogramQuantity of
decimal | BoxQuantity of f loat // ૿͢ͱ // ίϯύΠϧΤϥʔ
ύλʔϯϚον
TSʹͳ͍
switch
None
None
None
૿͑ͯίϯύΠϧͰ͖ ͪΌ͏
ํ๏1ɿneverΛ͏
None
ํ๏2ɿaslant
switch-exhaustiveness- check
LintͳͷͰίϯύΠϧͰ͖Δɻ ಛʹܕͷύλʔϯΛ૿ͨ࣌͠
ํ๏3ɿts-pattern
None
None