Paper record
W1963954367Soft typing with conditional types
Alex Aiken, Edward L. Wimmers, T. K. Lakshman
- Year
- 1994
- Venue
- ACM SIGPLAN-SIGACT Symposium on Principles of Programming Languages (POPL)
- References
- 28
- Cited by
- 243
Details and counts from OpenAlex.
Abstract
We present a simple and powerful type inference method for dynamically typed languages where no type information is supplied by the user. Type inference is reduced to the problem of solvability of a system of type inclusion constraints over a type language that includes function types, constructor types, union, intersection, and recursive types, and conditional types. Conditional types enable us to analyze control flow using type inference, thus facilitating computation of accurate types. We demonstrate the power and practicality of the method with examples and performance results from an implementation.