首页 > 其他 > 详细

泛型编程的本质

时间:2019-03-07 18:50:53      阅读:151      评论:0      收藏:0      [点我收藏+]

泛型编程于 1985 年在论文 Generic Programming 中被这样定义:

Generic programming centers around the idea of abstracting from concrete, efficient algorithms to obtain generic algorithms that can be combined with different data representations to produce a wide variety of useful software.

— Musser, David R.; Stepanov, Alexander A., Generic Programming

我理解其本质就是 —— 屏蔽掉数据和操作数据的细节,让算法更为通用,让编程者更多地关注算法的结构,而不是在算法中处理不同的数据类型。

 

32 | 编程范式游记(3) - 类型系统和泛型的本质

2018-01-18 陈皓

泛型编程的本质

原文:https://www.cnblogs.com/feng9exe/p/10491442.html

(0)
(0)
   
举报
评论 一句话评论(0
关于我们 - 联系我们 - 留言反馈 - 联系我们:wmxa8@hotmail.com
© 2014 bubuko.com 版权所有
打开技术之扣,分享程序人生!