首页> 外文OA文献 >Improving support for generic programming in C# with associated types and constraint propagation
【2h】

Improving support for generic programming in C# with associated types and constraint propagation

机译:使用关联的类型和约束传播来提高对C#中通用编程的支持

代理获取
本网站仅为用户提供外文OA文献查询和代理获取服务,本网站没有原文。下单后我们将采用程序或人工为您竭诚获取高质量的原文,但由于OA文献来源多样且变更频繁,仍可能出现获取不到、文献不完整或与标题不符等情况,如果获取不到我们将提供退款服务。请知悉。

摘要

Generics has recently been adopted to many mainstream object oriented languages,such as C# and Java. As a particular design choice, generics in C# and Javause a sub-typing relation to constraint type parameters. Failing to encapsulate typeparameters within generic interfaces and inability to encapsulate type constraints aspart of an interface definition have been identified as deficiencies in the way this designchoice has been implemented in these languages. These deficiencies can lead toverbose and redundant code. In particular, they have been reported to affect thedevelopment of highly generic libraries. To address these issues, extending objectoriented interfaces and sub-typing with associated types and constraint propagationhas been proposed and studied in an idealized small-scale formal setting. This thesisbuilds on this previous work and provides a design and implementation of theextensions in full C#. We also present a proof of soundness of the FeatherweightGeneric Java (FGJ) formalism extended with interfaces. This property was assumedin a proof of type safety of associated types and constraint propagation, but no prooffor the property was provided.
机译:泛型最近已被许多主流的面向对象的语言采用,例如C#和Java。作为特定的设计选择,C#和Java中的泛型使用子类型关系来约束类型参数。无法将类型参数封装在通用接口中,并且无法将类型约束作为接口定义的一部分进行封装,已被识别为以这些语言实现此设计选择的缺陷。这些缺陷可能导致冗长和冗余的代码。特别是,据报道它们影响高度通用的库的发展。为了解决这些问题,已经提出并在理想的小型正式环境中研究了扩展面向对象的接口以及具有相关类型和约束传播的子类型。本文以之前的工作为基础,并提供了完整C#扩展的设计和实现。我们还提供了通过接口扩展的FeatherweightGeneric Java(FGJ)形式主义的健全性的证明。在关联类型的类型安全性和约束传播的证明中假定此属性,但未提供该属性的证明。

著录项

  • 作者

    Srinivasa Raghavan Aravind;

  • 作者单位
  • 年度 2009
  • 总页数
  • 原文格式 PDF
  • 正文语种 en_US
  • 中图分类

相似文献

  • 外文文献
  • 中文文献
  • 专利

客服邮箱:kefu@zhangqiaokeyan.com

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

  • 服务号