像处理数据一样处理代码
来源:互联网 发布:mac bt下载工具 编辑:程序博客网 时间:2024/05/21 09:37
只听Norvig说:“是,John,你有什么问题?”我记不清Lisp之父当时怎么问的了,但不超过十个词,就是问 Python是否能如Lisp那样优雅地像数据一样处理代码。“不,John,不行。”Norvig回答,然后静等麦卡锡继续发问。但是,老人什么也没有再说。
怎么样像处理数据一样处理代码?
(define (cons x y) (define (dispatch m) (cond ((= m 0) x) ((= m 1) y) (else (error)))) dispatch)(define (car z) (z 0))(define (cdr z) (z 1))
This example demonstrates that the ability to manipulate procedures as objects automatically provides the ability to represent compound data. This may seem a curiosity now, but procedural representations of data will play a central role in our programming repertoire. This style of programming is often calledmessage passing.
参考文献:《structure and interpretation of computer programs》
- 像处理数据一样处理代码
- 像QQ一样处理滑动冲突
- CsQuery 犀利的html代码分析库,像jq一样用c#处理html
- vs中如何像vc6一样增加windows消息处理
- xmltodict:让你像处理JSON一样处理XML的Python模块
- GridView处理数据代码
- 像偏执狂一样工作,写诗一样代码
- AIRPLAY镜像音频数据的处理
- 像写诗一样写代码
- 像说话一样写代码
- 像写诗一样写代码
- 像数据科学家一样思考
- Bash脚本编程 (三): 像Jennifer Carner一样处理alias别名
- word 中的文字有点颜色,感觉像色差一样的处理办法 ,你试试
- C# unsafe代码处理数据
- 代码段处理重复数据
- 优美的代码像诗一样!
- 像诗一样的 Javascript 代码
- linux下的僵尸进程处理办法
- 网易面试笔记
- 如何从MyEclipse中删除添加的Hibernate Capabilities
- django ssl
- setCodecForCString setCodecForTr setCodecForLocale
- 像处理数据一样处理代码
- Java基础复习:Object类中的toSting()和equals()方法
- MFC的CDC类/设备上下文/设备环境及有关概念
- 基于JAX-WS调用Web Service的Java客户端
- 黑马程序员__JAVA基础__函数
- Eclipse安装CXF插件开发java web service 集成Spring
- bugfree安装及使用说明书
- 用CRectTracker绘制一个矩形区域,并且可以移动该矩形
- ZOJ-1834 AutoFish