~/talk

Finally Solving the Expression Problem

Talkat try! Swift Tokyo 2018 Β· 2018-03-01..03-03Β· [functional-programming, swift]
slides:none on file

Claims a practical solution to the expression problem in Swift by using protocols whose methods return Self so view constructors become static factory methods and interpreters are protocol conformances. Builds a small EnumKit-style DSL for view hierarchies, shows generic builders that compile to UIView, NSView, HTML and PDF, and demos diagrams and effect interpreters. Uses Swift generics, protocol instances and the Final Tagless style to add new view kinds and new renderers without editing the library, and it compiles and runs.

AI-written summary Β· about

  1. 0:00Start
  2. 4:20Enum Kit
  3. 5:43Recursive Traversal
  4. 6:55Add New View Types
  5. 11:48Add New Views
  6. 12:06The View Hierarchy
  7. 16:40Arithmetic Expressions
~/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.