paperbot · PL 论文追踪

RSS

Gradual typing with union and intersection types

ICFP 1(ICFP)2017引用 62
Giuseppe Castagna, Victor Lanvin

尚未生成 AI 速览(可能缺少 API key 或等待下次运行补跑)。

原文摘要(Abstract)

We propose a type system for functional languages with gradual types and set-theoretic type connectives and prove its soundness. In particular, we show how to lift the definition of the domain and result type of an application from non-gradual types to gradual ones and likewise for the subtyping relation. We also show that deciding subtyping for gradual types can be reduced in linear time to deciding subtyping on non-gradual types and that the same holds true for all subtyping-related decision problems that must be solved for type inference. More generally, this work not only enriches gradual type systems with unions and intersections and with the type precision that arise from their use, but also proposes and advocates a new style of gradual types programming where union and intersection types are used by programmers to instruct the system to perform fewer dynamic checks.

链接与引用

DOI 原文 · PDF(开放获取) · DBLP

BibTeX
@article{CastagnaL17,
  title = {Gradual typing with union and intersection types},
  author = {Giuseppe Castagna and Victor Lanvin},
  journal = {Proceedings of the ACM on Programming Languages},
  volume = {1},
  number = {ICFP},
  year = {2017},
  doi = {10.1145/3110285}
}