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

文章基本信息

  • 标题:Deconfined Intersection Types in Java
  • 本地全文:下载
  • 作者:Mariangiola Dezani-Ciancaglini ; Paola Giannini ; Betti Venneri
  • 期刊名称:OASIcs : OpenAccess Series in Informatics
  • 电子版ISSN:2190-6807
  • 出版年度:2020
  • 卷号:86
  • 页码:1-25
  • DOI:10.4230/OASIcs.Gabbrielli.3
  • 出版社:Schloss Dagstuhl -- Leibniz-Zentrum fuer Informatik
  • 摘要:We show how Java intersection types can be freed from their confinement in type casts, in such a way that the proposed Java extension is safe and fully compatible with the current language. To this aim, we exploit two calculi which formalise the simple Java core and the extended language, respectively. Namely, the second calculus extends the first one by allowing an intersection type to be used anywhere in place of a nominal type. We define a translation algorithm, compiling programs of the extended language into programs of the former calculus. The key point is the interaction between λ-expressions and intersection types, that adds safe expressiveness while being the crucial matter in the translation. We prove that the translation preserves typing and semantics. Thus, typed programs in the proposed extension are translated to typed Java programs. Moreover, semantics of translated programs coincides with the one of the source programs.
  • 关键词:Intersection Types; Featherweight Java; Lambda Expressions
国家哲学社会科学文献中心版权所有