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

文章基本信息

  • 标题:Brand Objects for Nominal Typing
  • 本地全文:下载
  • 作者:Timothy Jones ; Michael Homer ; James Noble
  • 期刊名称:LIPIcs : Leibniz International Proceedings in Informatics
  • 电子版ISSN:1868-8969
  • 出版年度:2015
  • 卷号:37
  • 页码:198-221
  • DOI:10.4230/LIPIcs.ECOOP.2015.198
  • 出版社:Schloss Dagstuhl -- Leibniz-Zentrum fuer Informatik
  • 摘要:Combinations of structural and nominal object typing in systems such as Scala, Whiteoak, and Unity have focused on extending existing nominal, class-based systems with structural subtyping. The typical rules of nominal typing do not lend themselves to such an extension, resulting in major modifications. Adding object branding to an existing structural system integrates nominal and structural typing without excessively complicating the type system. We have implemented brand objects to explicitly type objects, using existing features of the structurally typed language Grace, along with a static type checker which treats the brands as nominal types. We demonstrate that the brands are useful in an existing implementation of Grace, and provide a formal model of the extension to the language.
  • 关键词:brands; types; structural; nominal; Grace
国家哲学社会科学文献中心版权所有