计算机科学 > 程序设计语言
[提交于 2024年7月10日]
标题:Towards Algebraic Subtyping for Extensible Records
查看原文 PDF 中文 PDF (下批处理) EasyResearch 阅读摘要:MLsub is a minimal language with a type system combining subtyping and parametric polymorphism and a type inference algorithm which infers compact principal types. Simple-sub is an alternative inference algorithm which can be implemented efficiently and is easier to understand. MLsub supports explicitly typed records which are not extensible. Here we extend Simple-sub with extensible records, meaning that we can add new fields to a previously defined record. For this we add row variables to our type language and extend the type constraint solving method of our type inference algorithm accordingly, keeping the decidability of type inference.
提交历史
来自:Rodrigo Marques[v1] 2024年7月10日 星期三 00:00:00 UTC