期刊文献+

泛型编程在面向对象语言中的对比研究 被引量:8

The Contrastive Study of Generic Programming in Object-Oriented Languages
下载PDF
导出
摘要 泛型程序设计通过从更高的层次对具体的算法和数据结构进行抽象,提高了软件的可扩展性、复用性和类型安全性,它主要是基于一系列自定义的类型约束而不是仅局限于预定义类型.该文对C++、Concepts C++、Java、C#以及Python等5种不同的、支持泛型程序设计的面向对象程序设计语言进行综合比较,并执行一个典型的且能够较好支持泛型编程机制的例子来分析这些面向对象语言的特征及对泛型编程机制的支撑程度,从而探寻泛型编程的本质特性,为减少程序开发的冗余、增强程序的可维护性提供参考. Generic programming improves the scalability,reusability,and type safety of software by abstracting the concrete algorithms and data structures from a higher level. It is mainly based on a series of custom type constraints rather than just predefined type. Five different object-oriented programming languages are compared comprehensively in this article that support generic programming such as C + +,Concepts C + +,Java,C#,and Python,and perform a typical example that can better support generic programming mechanisms to analysis the characteristics of these object-oriented languages and the degree of support,so that can explore the nature features of generic programming,and provide references for reducing the development of redundant programs and enhancing the maintainability of the program.
作者 周卫星 左正康 王昌晶 石海鹤 游珍 谢武平 陶小明 ZHOU Weixing;ZU;WANG Changing;SHI Haihe;YOU Zhen;XIE Wuping;TA(College of Computer Information Engineering,Jiangxi Normal University ,Nanchang Jiangxi 330022,China;Provincial Key Laboratory High Performance Computing,Jiangxi Normal University,Nanchang Jiangxi 330022,China)
出处 《江西师范大学学报(自然科学版)》 CAS 北大核心 2018年第3期304-310,共7页 Journal of Jiangxi Normal University(Natural Science Edition)
基金 国家自然科学基金(61462039,61762049,61662035,61462041) 江西省自然科学基金(20171BAB202013,20171BAB202008) 江西省教育厅科技课题(GJJ150349,GJJ160329)资助项目
关键词 泛型程序设计 类型约束 面向对象程序语言 泛型机制 generic programming type constraints object-oriented language generic mechanism
  • 相关文献

参考文献6

二级参考文献115

  • 1陈火旺,王戟,董威.高可信软件工程技术[J].电子学报,2003,31(z1):1933-1938. 被引量:115
  • 2薛锦云,李云清,杨庆红.若干新的可重用程序部件模式[J].计算机研究与发展,1993,30(1):39-44. 被引量:12
  • 3孙斌.面向对象、泛型程序设计与类型约束检查[J].计算机学报,2004,27(11):1492-1504. 被引量:14
  • 4Austern M H. Generic Programming and the STL. Professional Computing Series. Boston: Addison-Wesley, 1999.
  • 5Andrei Alexandrescu. Modern C ++ Design: Generic Pro gramming and Design Patterns Applied. Boston, MA: Addison-Wesley Longman Publishing Co. , Inc. , 2001.
  • 6Plauger P, Stepanov A A, Lee M, Musser D R. The C++ Standard Template Library. Prentice Hall PTR, 2000.
  • 7Gregor D, Jarvi J, Siek J, Stroustrup B, DosReis G, Lumsdaine A. Concepts: Linguistic support for generic programming in C++//Proceedings of the Object-Oriented Programruing, Systems, Languages, and Applications(OOPSLA'06). Portland, Oregon, USA, 2006:291- 310.
  • 8Sick J, Lumsdaine A. Language requirements for large-scale generic libraries//Proceedings of the 4th International Conference on Generative Programming and Component Engi neering (GPCE'05). Tailinn, Estonia, 2005. New York: ACM, 2006:405-421.
  • 9Garcia R, Jarvi J, Lumsdaine R et al. A comparative study of language support for generic programming//Proceedings of the 18th Annual ACM SIGPLAN Conference on Object-Oriented Programing, Systems, Languages, and Applications, Anaheim, California, USA, 2003:115-134.
  • 10Chen Lin, Xu Bao Wen, Zhou Tian-Lin, Shi Liang, He Yan-Xiang. Refactoring C++ programs with concepts//Proceedings of the 9th IASTED International Conference on Software Engineering and Applications. Phoenix, AZ, USA, 2005.

共引文献55

同被引文献38

引证文献8

二级引证文献16

相关作者

内容加载中请稍等...

相关机构

内容加载中请稍等...

相关主题

内容加载中请稍等...

浏览历史

内容加载中请稍等...
;
使用帮助 返回顶部