arXivDaily arXiv每日学术速递 周一至周五更新
arXiv cs/0204015cs.PL
收藏

功能性战略编程的设计模式

Design Patterns for Functional Strategic Programming

Ralf Laemmel, Joost Visser

摘要:

在以前的工作中,我们介绍了\emph{strategic programming}的基础知识和支持组合子库。这是一种基于\emph{functional strategy}概念的泛型编程习惯用法:一种第一类泛型函数,不仅可以应用于任何类型的项,而且还允许泛型遍历到子项,并可以使用特定于类型的行为进行定制。本文旨在为实践功能程序员提供实用的指导,在制定自己的战略计划。我们从用户的角度介绍基本原理和支持,并启动\emph{strategy design patterns}目录。这些设计模式旨在以可访问的形式巩固战略编程专业知识。

英文摘要:

In previous work, we introduced the fundamentals and a supporting combinator library for \emph{strategic programming}. This an idiom for generic programming based on the notion of a \emph{functional strategy}: a first-class generic function that cannot only be applied to terms of any type, but which also allows generic traversal into subterms and can be customized with type-specific behaviour. This paper seeks to provide practicing functional programmers with pragmatic guidance in crafting their own strategic programs. We present the fundamentals and the support from a user's perspective, and we initiate a catalogue of \emph{strategy design patterns}. These design patterns aim at consolidating strategic programming expertise in accessible form.

机构、总结、中文摘要均由AI分析而来,可能存在错误,请以论文正文为准。

↑