计算机科学 > 程序设计语言
[提交于 2005年10月24日]
标题:Practical Datatype Specializations with Phantom Types and Recursion Schemes
查看原文 PDF 中文 PDF (下批处理) EasyResearch 阅读摘要:Datatype specialization is a form of subtyping that captures program invariants on data structures that are expressed using the convenient and intuitive datatype notation. Of particular interest are structural invariants such as well-formedness. We investigate the use of phantom types for describing datatype specializations. We show that it is possible to express statically-checked specializations within the type system of Standard ML. We also show that this can be done in a way that does not lose useful programming facilities such as pattern matching in case expressions.
提交历史
来自:Riccardo Pucella[v1] 2005年10月24日 星期一 16:27:00 UTC