paperbot · PL 论文追踪

RSS

Fluent APIs in Functional Languages

OOPSLA 7(OOPSLA1)2023
Ori Roth, Yossi Gil

尚未生成 AI 速览(可能缺少 API key 或等待下次运行补跑)。

原文摘要(Abstract)

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. Since fluent API implementations typically rely on overloading function names, they are hard to realize in functional programming languages. This work shows how functional fluent APIs can be implemented in the absence of name overloading, by relying on parametric polymorphism and Hindley-Milner type inference. The implementation supports fluent API protocols in the regular- and deterministic context-free language classes, and even beyond.

链接与引用

DOI 原文 ·

BibTeX
@article{paperbot2036,
  title = {Fluent APIs in Functional Languages},
  author = {Ori Roth and Yossi Gil},
  journal = {Proceedings of the ACM on Programming Languages},
  volume = {7},
  number = {OOPSLA1},
  year = {2023},
  doi = {10.1145/3586057}
}