Hindley–Milner Type Inference
Hindley–Milner 类型推导, Algorithm W, Damas–Milner type inference, HM type inference1969
为无类型标注的程序引入类型变量,通过合一求解约束,并在 let 绑定处对类型进行泛化,从而在允许参数多态的同时推导出最一般类型的方法。算法 W 是其经典实现。
起源
2 个独立起源——荣誉按起源分摊
R. Hindley (1969). The principle type-scheme of an object in combinatory logic. Transactions of the American Mathematical Society 146.doi:10.1090/s0002-9947-1969-0253905-6 — 2026-11-08 已通过 Crossref 核验书目信息
Robin Milner (1978). A theory of type polymorphism in programming. Journal of Computer and System Sciences 17(3).doi:10.1016/0022-0000(78)90014-4 — 2026-11-08 已通过 Crossref 核验书目信息
谱系
2 个算法,1 条关系
本算法的源头
从何派生而来
Robinson's Unification Algorithm1965
作者陈述Milner 的算法 W 使用 Robinson 的合一算法求解类型约束。 — doi:10.1016/0022-0000(78)90014-4
代表性实现
已按 GitHub 默认分支核实路径
更多查找: GitHub · Semantic Scholar · Google Scholar · arXiv
贡献申明与异议
加载中…