arXiv Open Access 2022

Fluent APIs in Functional Languages (full version)

Ori Roth Yossi Gil
Lihat Sumber

Abstrak

Fluent API is an object-oriented pattern for elegant APIs and embedded DSLs. A smart fluent API can enforce the API protocol or DSL syntax at compile time. As fluent API designs typically rely on function overloading, they are hard to realize in functional programming languages. We show how to write functional fluent APIs using parametric polymorphism and type inference instead of overloading. Our designs support all regular and deterministic context-free API protocols and beyond.

Topik & Kata Kunci

Penulis (2)

O

Ori Roth

Y

Yossi Gil

Format Sitasi

Roth, O., Gil, Y. (2022). Fluent APIs in Functional Languages (full version). https://arxiv.org/abs/2211.01473

Akses Cepat

Lihat di Sumber
Informasi Jurnal
Tahun Terbit
2022
Bahasa
en
Sumber Database
arXiv
Akses
Open Access ✓