Fluent APIs in Functional Languages
summary
Claims a way to get fluent APIs in functional languages without name overloading by using parametric polymorphism and Hindley-Milner type inference and a Church-encoding trick. Implements an SML library that embeds HTML and enforces structure and equal-column rows at compile time (so the code compiles iff the embedded document obeys the DSL grammar), covers regular and deterministic context-free protocols and beyond, and ships reusable artifacts and paper.
AI-written summary · about
chapters (9)
- 0:00Introduction
- 1:44Authors background
- 3:30Core contribution
- 8:40Embedding HTML in SML
- 11:32LINQ in C comparison
- 13:49F# query expressions
- 15:57Fluent APIs type challenges
- 18:10Type overloading and Church encoding
- 19:37Summary
related talks
14mFluid Quotes: Metaprogramming across Abstraction Boundaries with Dependent Types
44mFunctional Interpreters and You
31mEmbedding Functional Logic Programming in Haskell via a Compiler Plugin
21mPolymorphic Type Inference for Dynamic Languages
42mFunctional interpreters and you
01h 02mPolyglot Programming through Foreign Function Interfaces
20mPredictable macros for hindley milner
41mAn Introduction to Functional Imperative Programming in Flix
