你如何设计一个功能性程序? [英] How do you design a functional program?

查看:14
本文介绍了你如何设计一个功能性程序?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

从我编程生涯的第一天起,我就开始了面向对象的编程.但是,我对学习其他范式很感兴趣(我在这里多次说过的东西是一件好事,但我没有时间去做).我想我不仅准备好了,而且还有时间,所以我将开始使用 F# 进行函数式编程.

From day 1 of my programming career, I started with object-oriented programming. However, I'm interested in learning other paradigms (something which I've said here on SO a number of times is a good thing, but I haven't had the time to do). I think I'm not only ready, but have the time, so I'll be starting functional programming with F#.

但是,我不确定如何构建更少的设计应用程序.我习惯于 OO 编程中每个文件一个类和类名词/函数动词的想法.您如何设计和构建功能性应用程序?

However, I'm not sure how to structure much less design applications. I'm used to the one-class-per-file and class-noun/function-verb ideas in OO programming. How do you design and structure functional applications?

推荐答案

阅读 SICP.

此外,还有一个 PDF 版本可用.

Also, there is a PDF Version available.

这篇关于你如何设计一个功能性程序?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆