【24h】

Generic ownership for generic Java

机译:通用Java的通用所有权

获取原文
获取原文并翻译 | 示例

摘要

Ownership types enforce encapsulation in object-oriented programs by ensuring that objects cannot be leaked beyond object(s) that own them. Existing ownership programming languages either do not support parametric polymorphism (type genericity) or attempt to add it on top of ownership restrictions. Generic Ownership provides per-object ownership on top of a sound generic imperative language. The resulting system not only provides ownership guarantees comparable to established systems, but also requires few additional language mechanisms due to full reuse of parametric polymorphism. We formalise the core of Generic Ownership, highlighting that only restriction of this calls and owner subtype preservation are required to achieve deep ownership. Finally we describe how Ownership Generic Java (OGJ) was implemented as a minimal extension to Generic Java in the hope of bringing ownership types into mainstream programming.
机译:所有权类型通过确保对象不能泄漏到拥有的对象之外,从而在面向对象的程序中实施封装。现有的所有权编程语言要么不支持参数多态性(类型通用性),要么尝试在所有权限制之上添加它。通用所有权在合理的通用命令性语言之上提供了每个对象的所有权。最终的系统不仅提供了与已建立系统相当的所有权保证,而且由于完全重用了参数多态性,因此几乎不需要其他语言机制。我们将通用所有权的核心形式化,强调只有 this 调用限制和所有者子类型保留才能实现深层所有权。最后,我们描述了所有权通用Java(OGJ)是如何实现的,作为通用Java的最小扩展,希望将所有权类型引入主流编程。

著录项

相似文献

  • 外文文献
  • 中文文献
  • 专利
获取原文

客服邮箱:kefu@zhangqiaokeyan.com

京公网安备:11010802029741号 ICP备案号:京ICP备15016152号-6 六维联合信息科技 (北京) 有限公司©版权所有
  • 客服微信

  • 服务号