Write your Own Domain Specific Language with F#
summary
Claims a practical recipe to write a strongly, statically typed DSL in F# and shows concrete tools and patterns used: Fable transpiles F# to JavaScript, units-of-measure prevent gram/kilogram mix at compile time, option and result types eliminate nulls and force explicit errors. Examples include payment and gadget types, phone/tablet code validators, and a composed workflow that goes validate -> price -> acknowledge -> events pipeline. Demonstrations compile and run, reduce runtime checks and tests, and show why nontechnical people balk at raw JSON.
AI-written summary · about
chapters (8)
- 0:00Start
- 3:02Why I Like Being a Dotnet Developer
- 5:01Business Logic
- 9:14F-Sharp Language
- 16:24Pure Functions and the Mutability
- 17:34Nulls
- 19:29Discriminated Union
- 21:28Example of Pattern Matching








