Inferring type rules for syntactic sugar

1Citations
Citations of this article
10Readers
Mendeley users who have this article in their library.
Get full text

Abstract

Type systems and syntactic sugar are both valuable to programmers, but sometimes at odds. While sugar is a valuable mechanism for implementing realistic languages, the expansion process obscures program source structure. As a result, type errors can reference terms the programmers did not write (and even constructs they do not know), baffling them. The language developer must also manually construct type rules for the sugars, to give a typed account of the surface language. We address these problems by presenting a process for automatically reconstructing type rules for the surface language using rules for the core. We have implemented this theory, and show several interesting case studies.

Cite

CITATION STYLE

APA

Pombrio, J., & Krishnamurthi, S. (2018). Inferring type rules for syntactic sugar. ACM SIGPLAN Notices, 53(4), 812–825. https://doi.org/10.1145/3192366.3192398

Register to see more suggestions

Mendeley helps you to discover research relevant for your work.

Already have an account?

Save time finding and organizing research with Mendeley

Sign up for free