首页> 外文会议>Brazilian Symposium on programming languages >Language Support for Generic Programming in Object-Oriented Languages: Peculiarities, Drawbacks, Ways of Improvement
【24h】

Language Support for Generic Programming in Object-Oriented Languages: Peculiarities, Drawbacks, Ways of Improvement

机译:面向对象语言中的通用编程的语言支持:特殊性,缺点,改进方法

获取原文

摘要

Earlier comparative studies of language support for generic programming (GP) have shown that mainstream object-oriented (OO) languages such as C# and Java provide weaker support for GP as compared with functional languages such as Haskell or SML. But many new object-oriented languages have appeared in recent years. Have they improved the support for generic programming? And if not, is there a reason why OO languages yield to functional ones in this respect? In this paper we analyse language constructs for GP in seven modern object-oriented languages. We demonstrate that all of these languages follow the same approach to constraining type parameters, which has a number of inevitable problems. However, those problems are successfully lifted with the use of the another approach. Several language extensions that adopt this approach and allow to improve GP in OO languages are considered. We analyse the dependencies between different language features, discuss the features' support using both approaches, and propose which approach is more expressive.
机译:较早的对通用编程(GP)语言支持的比较研究表明,与诸如Haskell或SML之类的功能语言相比,主流的面向对象(OO)语言(例如C#和Java)对GP的支持较弱。但是,近年来出现了许多新的面向对象的语言。他们是否改善了对通用编程的支持?如果不是这样,那么在这方面,OO语言为什么会屈服于功能性语言呢?在本文中,我们用7种现代的面向对象语言分析了GP的语言构造。我们证明了所有这些语言都遵循相同的方法来约束类型参数,这有许多不可避免的问题。但是,使用另一种方法可以成功解决这些问题。考虑了采用这种方法并允许改进OO语言中的GP的几种语言扩展。我们分析了不同语言功能之间的依赖关系,讨论了两种方法对功能的支持,并提出了哪种方法更具表现力。

著录项

相似文献

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

客服邮箱:kefu@zhangqiaokeyan.com

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

  • 服务号