ML with extended pattern matching and subtypes
ML with extended pattern matching and subtypes
复制标题
具有扩展模式匹配和子类型的机器学习
DOI:
10.1145/62678.62702
复制
发表时间:
1988
期刊:
影响因子:
--
通讯作者:
John C. Mitchell
中科院分区:
文献类型:
--
作者:
L. Jagadeesan;John C. Mitchell
We extend a fragment of the programming language Standard ML by incorporating a more general form of record pattern matching and providing for user-declared subtypes. Together, these two enhancements may be used to support a restricted object-oriented programming style. In keeping with the framework of Standard ML, we present typing rules for the language, and develop an efficient type inference algorithm. We prove that the algorithm is sound with respect to the typing rules, and that it infers a most general typing for every typable expression.