Back to Search Start Over

Practical Aspects of Declarative Languages

Authors :
Bhargav Shivkumar
Enrique Naudon
Lukasz Ziarek
Source :
Lecture Notes in Computer Science ISBN: 9783030674373
Publication Year :
2021
Publisher :
Springer International Publishing, 2021.

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.

Details

ISBN :
978-3-030-67437-3
ISBNs :
9783030674373
Database :
OpenAIRE
Journal :
Lecture Notes in Computer Science ISBN: 9783030674373
Accession number :
edsair.doi...........47e70a6f51b1f26c1d811e7bf4d7fcd3