计算机技术与发展2012,Vol.22Issue(6):89-92,96,5.
基于Haskell语言的泛型扩展研究
Generic Extension Research Based on Haskell Language
李阳 1于尚超 1王朋1
作者信息
- 1. 解放军理工大学 指挥自动化学院计算机系,江苏南京210007
- 折叠
摘要
Abstract
Generic can treat the types as arguments. Then many kinds of data-types can be processed by the same source code. Generic programming is a normal form of programming. It can make types abstract by a method called type parameterization. So realize the goal of software reuse agilely. For the moment, the idea of generic programming has been realized in many languages .which have got great achievement. It is intended to make some research in the field of Haskeli language,and give an application as an example. Haskell is a popular language, and it is functional too. It has a lot of advantages,such as simple module,clarity syntax,etc. So the programmer can write and modify Haskell sentence easily. It shows the extension of the grammar of Haskell according to some rules, which also introduces the idea of generic programming, and gives some methods to define functions. Finally, the function of generic would be completed in Haskell.关键词
泛型编程/类型抽象/函数式程序语言/语法扩展Key words
generic programming/type abstract/functional programming language/grammar extension分类
信息技术与安全科学引用本文复制引用
李阳,于尚超,王朋..基于Haskell语言的泛型扩展研究[J].计算机技术与发展,2012,22(6):89-92,96,5.