作者
Karen L Bernstein, Eugene W Stark
发表日期
1995/11/8
期刊
Unpublished Technical Report, Computer Science Dept. State University of New York at Stony Brook
简介
Compilers for programming languages such as Standard ML are able to nd many programming errors at compile time, however the diagnostic messages from the type inference algorithm do not always clearly identify the source of type errors. We argue that an extended type definition, which assigns types to open expressions as well as closed expressions, can serve as the basis for a programming environment that helps programmers debug type errors. We present such a type de nition, which is closely related to the Damas/Milner de nition, but which in addition provides principal typings for open expressions. We present an algorithm that performs type inference with respect to our type system and give a simple direct proof of its correctness. Finally we describe a prototype implementation.
引用总数
1998199920002001200220032004200520062007200820092010201120122013201420152016201720182019202020212022761461323121122421322
学术搜索中的文章
KL Bernstein, EW Stark - … Technical Report, Computer Science Dept. State …, 1995