Skip to main navigation Skip to search Skip to main content

Putting Gradual Types to Work

  • Bloomberg L.P.
  • SUNY Buffalo

Research output: Chapter in Book/Report/Conference proceedingConference contributionpeer-review

1 Scopus citations

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.

Original languageEnglish
Title of host publicationPractical Aspects of Declarative Languages - 23rd International Symposium, PADL 2021, Proceedings
EditorsJosé F. Morales, Dominic Orchard
PublisherSpringer Science and Business Media Deutschland GmbH
Pages54-70
Number of pages17
ISBN (Print)9783030674373
DOIs
StatePublished - 2021
Event23rd International Symposium on Practical Aspects of Declarative Languages, PADL 2021 - Copenhagen, Denmark
Duration: Jan 18 2021Jan 19 2021

Publication series

NameLecture Notes in Computer Science (including subseries Lecture Notes in Artificial Intelligence and Lecture Notes in Bioinformatics)
Volume12548 LNCS
ISSN (Print)0302-9743
ISSN (Electronic)1611-3349

Conference

Conference23rd International Symposium on Practical Aspects of Declarative Languages, PADL 2021
Country/TerritoryDenmark
CityCopenhagen
Period01/18/2101/19/21

Keywords

  • Functional programming
  • Gradual typing
  • Type inference

Fingerprint

Dive into the research topics of 'Putting Gradual Types to Work'. Together they form a unique fingerprint.

Cite this