1984 · 206 citations · 11 references
ComputingComputer ScienceAlgorithmsFormal MethodsProgramming LanguagesData TypesFormal SemanticsType CheckingType SystemsCompile-time OptimizationInference RulesPolymorphic Type SystemsPolymorphic TypesPolymorphism StudiesType InferenceType PolymorphismType Theory
A simple semantic model of automatic coercion is proposed. This model is used to explain four rules for inferring polymorphic types and providing automatic coercions between types. With the addition of a fifth rule, the rules become semantically complete but the set of types associated with an expression may be undecidable. An efficient type checking algorithm based on the first four rules is presented. The algorithm is guaranteed to find a type whenever a type can be deduced using the four inference rules. The type checking algorithm may be modified so that calls to type conversion functions are inserted at compile time.
11
A theory of type polymorphism in programming
Robin Milner · Journal of Computer and System Sciences · 1978 · 2.2K citations · Full text
Principal type-schemes for functional programs
Robin Milner · 1982 · 1.1K citations