摘要
该文对泛型编程的核心思想和技术特征进行了较为深入的分析,介绍了泛型编程在语言实现上的现状与不足,着重论述了作者针对这些不足做出的改进工作,即对类型参数及其约束机制进行扩展以支持通用、高效的算法和数据结构的设计,并以JAVA语言作为实施例,详细介绍了如何通过现有对象技术来实现比较完整的泛型编程,是现有面向对象语言类泛型编程的首例.
A thorough and in-depth analysis of the underlying idea and technological characteristics of generic programming is presented,elaborating its development and weakness with respect to language supporting.With the emphasis on the significant work to compensate an insufficiency of type parameter and its constraint in language,aiming at more general and efficient algorithm and data structure,the paper provides an extension to generic programming mechanism and details the implementation in Java,which is the first example to support the extension for generic programming in the family of OO languages.
出处
《江西师范大学学报(自然科学版)》
CAS
北大核心
2007年第5期471-474,共4页
Journal of Jiangxi Normal University(Natural Science Edition)
基金
江西省自然科学基金(0511041)项目
关键词
泛型编程
面向对象语言
类型参数
约束机制
generic programming
object-oriented language
type parameter
constraint mechanism