Title: A lightweight implementation of generics and dynamics
Abstract:The recent years have seen a number of proposals for extending statically typed languages by dynamics or generics. Most proposals --- if not all --- require significant extensions to the underlying la...The recent years have seen a number of proposals for extending statically typed languages by dynamics or generics. Most proposals --- if not all --- require significant extensions to the underlying language. In this paper we show that this need not be the case. We propose a particularly lightweight extension that supports both dynamics and generics. Furthermore, the two features are smoothly integrated: dynamic values, for instance, can be passed to generic functions. Our proposal makes do with a standard Hindley-Milner type system augmented by existential types. Building upon these ideas we have implemented a small library that is readily usable both with Hugs and with the Glasgow Haskell compiler.Read More
Publication Year: 2002
Publication Date: 2002-10-03
Language: en
Type: article
Indexed In: ['crossref']
Access and Citation
Cited By Count: 127
AI Researcher Chatbot
Get quick answers to your questions about the article from our AI researcher chatbot