按年被提到
20132017 · 1 次2026
编程语言与编译器›类型系统与函数式语言·arXiv:1306.6032 · cs.PL

Complete and Easy Bidirectional Typechecking for Higher-Rank Polymorphism

Jana Dunfield, Neelakantan R. Krishnaswami · 2013
开始阅读 ↗PDFalphaXiv 讨论
被提及 · 2 人首次 2017-08-20 · 最近 2020-09-27
2不同的人
2活跃月份
2讨论串
0被引(OpenAlex)
arXiv 摘要(候选层不写导读)

Bidirectional typechecking, in which terms either synthesize a type or are checked against a known type, has become popular for its scalability (unlike Damas-Milner type inference, bidirectional typing remains decidable even for very expressive type systems), its error reporting, and its relative ease of implementation. Following design principles from proof theory, bidirectional typing can be applied to many type constructs. The principles underlying a bidirectional approach to polymorphism, however, are less obvious. We give a declarative, bidirectional account of higher-rank polymorphism, grounded in proof theory; this calculus enjoys many properties such as eta-reduction and predictability of annotations. We give an algorithm for implementing the declarative system; our algorithm is remarkably simple and well-behaved, despite being both sound and complete.

候选层:至少 2 个不同的人、在 2 个不同月份提到过,还没到主书架的 3 人 3 个月。没有做立场标注,所以只写“被提及”。

HN 书评

推荐在前,同类按时间 · 每篇最多保留 20 条,统计用全部提及
评论iitalics · 2017-08

“Hindley-Milner is cool, but if you're planning on implementing a language with type inference, I strongly suggest you take inspiration from bidirectional type inference, notably Pierce-Turner[1] and subsequently Dunfield-Krishnaswami[2]. These algorithms are capable of inferring much more complex types and generally produce better error messages. Typicall…”

What is Hindley-Milner and why is it cool? (2008)原评论 ↗
评论throwaway17_17 · 2020-09

“I certainly have a lot of recommendations that are topic adjacent, but most of my comment comes from mental revision. I have a horrible habit of reliving previous arguments and trying to find out what I could have said better to win the argument. I had an argument with a law school classmate who had a Masters in Mathematics (now a PhD) while we were on a …”

What Is Math?原评论 ↗