Soft typing with conditional types
Soft typing with conditional types
复制标题
具有条件类型的软类型
DOI:
10.1145/174675.177847
复制
发表时间:
1994
期刊:
影响因子:
--
通讯作者:
T. K. Lakshman
中科院分区:
文献类型:
--
作者:
A. Aiken;E. Wimmers;T. K. Lakshman
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.