首页    期刊浏览 2024年11月27日 星期三
登录注册

文章基本信息

  • 标题:Semantic Subtyping for Non-Strict Languages
  • 本地全文:下载
  • 作者:Tommaso Petrucciani ; Giuseppe Castagna ; Davide Ancona
  • 期刊名称:LIPIcs : Leibniz International Proceedings in Informatics
  • 电子版ISSN:1868-8969
  • 出版年度:2019
  • 卷号:130
  • 页码:1-24
  • DOI:10.4230/LIPIcs.TYPES.2018.4
  • 出版社:Schloss Dagstuhl -- Leibniz-Zentrum fuer Informatik
  • 摘要:Semantic subtyping is an approach to define subtyping relations for type systems featuring union and intersection type connectives. It has been studied only for strict languages, and it is unsound for non-strict semantics. In this work, we study how to adapt this approach to non-strict languages: in particular, we define a type system using semantic subtyping for a functional language with a call-by-need semantics. We do so by introducing an explicit representation for divergence in the types, so that the type system distinguishes expressions that are results from those which are computations that might diverge.
  • 关键词:Semantic subtyping; non-strict semantics; call-by-need; union types; intersection types
国家哲学社会科学文献中心版权所有