当前位置: X-MOL 学术J. Funct. Program. › 论文详情
Our official English website, www.x-mol.net, welcomes your feedback! (Note: you will need to create a separate account there.)
How to design co-programs
Journal of Functional Programming ( IF 1.1 ) Pub Date : 2021-07-02 , DOI: 10.1017/s0956796821000113
JEREMY GIBBONS 1
Affiliation  

The observation that program structure follows data structure is a key lesson in introductory programming: good hints for possible program designs can be found by considering the structure of the data concerned. In particular, this lesson is a core message of the influential textbook “How to Design Programs” by Felleisen, Findler, Flatt, and Krishnamurthi. However, that book discusses using only the structure of input data for guiding program design, typically leading towards structurally recursive programs. We argue that novice programmers should also be taught to consider the structure of output data, leading them also towards structurally corecursive programs.

中文翻译:

如何设计协同程序

观察到程序结构遵循数据结构是介绍性编程中的关键一课:通过考虑相关数据的结构,可以找到可能的程序设计的良好提示。特别是,这一课是 Felleisen、Findler、Flatt 和 Krishnamurthi 所著的颇具影响力的教科书“如何设计程序”的核心信息。然而,那本书只讨论了使用输入用于指导程序设计的数据,通常导致结构性递归的程式。我们认为,新手程序员也应该被教导考虑结构输出数据,也引导他们走向结构核心草书程式。
更新日期:2021-07-02
down
wechat
bug