We gratefully acknowledge support from
the Simons Foundation and member institutions.
Full-text links:

Download:

Current browse context:

cs.PL

Change to browse by:

cs

References & Citations

DBLP - CS Bibliography

Bookmark

(what is this?)
CiteULike logo BibSonomy logo Mendeley logo del.icio.us logo Digg logo Reddit logo

Computer Science > Programming Languages

Title: Putting gradual types to work

Abstract: In this paper, we describe our experience incorporating gradual types in a statically typed functional language with Hindley-Milner style type inference. Where most gradually typed systems aim to improve static checking in a dynamically typed language, we approach it from the opposite perspective and promote dynamic checking in a statically typed language. Our approach provides a glimpse into how languages like SML and OCaml might handle gradual typing. We discuss our implementation and challenges faced -- specifically how gradual typing rules apply to our representation of composite and recursive types. We review the various implementations that add dynamic typing to a statically typed language in order to highlight the different ways of mixing static and dynamic typing and examine possible inspirations while maintaining the gradual nature of our type system. This paper also discusses our motivation for adding gradual types to our language, and the practical benefits of doing so in our industrial setting.
Subjects: Programming Languages (cs.PL)
Journal reference: Practical Aspects of Declarative Languages (2021) 54-70
DOI: 10.1007/978-3-030-67438-0
Cite as: arXiv:2101.12299 [cs.PL]
  (or arXiv:2101.12299v1 [cs.PL] for this version)

Submission history

From: Enrique Naudon [view email]
[v1] Thu, 28 Jan 2021 22:17:49 GMT (118kb,D)

Link back to: arXiv, form interface, contact.