~/talk

Algebraic Data Types for C#

Talkat LambdaConf 2017 · 2017-05-25..05-27· [c-sharp, dotnet]
slides:none on file

Explains how to get true immutable algebraic data types into C# by defining a tiny DSL files embedded in project then turning that AST into real C# via Roslyn code generation and F# parser combinators (FParsec). Demonstrates the actual generated patterns: private constructors, sealed subclasses, structural equality, a match method, and Visual Studio integration as a custom tool that emits code on save. Points to an open source repo on GitHub and C# Union extension for instant use.

AI-written summary · about

  1. 0:00Introduction
  2. 1:34Algebraic Data Types
  3. 6:30Record Types
  4. 8:45Sum Types
  5. 13:42Scala
  6. 16:55NewSum
  7. 18:42Equal
  8. 20:27Value Semantics
  9. 22:29Pattern Matching
  10. 26:22boilerplate code
  11. 27:48language
  12. 29:00SP approach
  13. 36:46Passing
  14. 42:56Rosalind Style Generation
  15. 44:11Parameterize
  16. 45:11Visual Studio
  17. 45:46Code Generator
~/search
type to search 6,249 conferences, 138,987 speakers and 185,172 talks
~/help
cmdctrl k
search every conference, speaker and series
/
focus the filter search
h
home
c
conferences
s
speakers
e
series
t
light / dark — the status bar button does the same
?
this help
esc
close this, then clear every filter — or just the search, while you are typing in it

Ignored while you are typing. Pages without a filter rail have no search to focus.