Scrap Your Boilerplate
Scrap Your Boilerplate
复制标题
废弃你的样板文件
DOI:
--
复制
发表时间:
2003
期刊:
影响因子:
--
通讯作者:
R. Lämmel
中科院分区:
文献类型:
--
作者:
S. Jones;R. Lämmel
Many programs traverse data structures built from rich mutually-recursive data types. Such programs often have a great deal of “boilerplate” code that simply walks the structure, hiding a small amount of “real” code that constitutes the reason for the traversal. ”Generic programming” is the umbrella term to describe a wide variety of programming technology directed at this problem. All these techniques aim to provide mechanical support for the “boilerplate” part, leaving the programmer free to concentrate on the important part of the algorithm. Such generic programs are much more robust to data structure evolution because they contain many fewer lines of type-specific code.