首页    期刊浏览 2025年12月04日 星期四
登录注册

文章基本信息

  • 标题:Type Inference with Nonstructural Subtyping
  • 本地全文:下载
  • 作者:Jens Palsberg ; Mitchell Wand ; Patrick O'Keefe
  • 期刊名称:BRICS Report Series
  • 印刷版ISSN:0909-0878
  • 出版年度:1995
  • 卷号:2
  • 期号:33
  • 出版社:Aarhus University
  • 摘要:We present an O(n^3) time type inference algorithm for a type system with a largest type !, a smallest type ?, and the usual ordering between function types. The algorithm infers type annotations of minimal size, and it works equally well for recursive types. For the problem of typability, our algorithm is simpler than the one of Kozen, Palsberg, and Schwartzbach for type inference without ?. This may be surprising, especially because the system with ? is strictly more powerful.
国家哲学社会科学文献中心版权所有