小骗子和球拍 [英] Little Schemer and Racket
问题描述
我开始阅读Little Schemer,现在我们有了Racket,而不是PLT Scheme.我想知道Racket是否适合做本书中的练习,还是我需要获得另一个真正的Scheme编译器.在我忘记告诉您之前,我的操作系统是Windows x64.
I'm starting to read the Little Schemer and now instead of PLT Scheme we have Racket. I would like to know if Racket is suitable for doing the exercises in the book or do I need to get another true Scheme compiler. Before I forgot to tell you, my OS is Windows x64.
这本书,语言和范式足够复杂,我希望避免与编译器纠缠.
The book, language and paradigm is complex enough, I would love to avoid struggling with a compiler.
非常感谢.
推荐答案
DrRacket是DrScheme的(r)演进; DrRacket将非常适合"The Little Schemer"中的练习.只是不要忘记:
DrRacket is the (r)evolution of DrScheme; DrRacket will work perfectly for the exercises in "The Little Schemer". Just don't forget to:
- 在
Language
对话框中,选择使用源中声明的语言" - 在创建的每个文件的顶部写入
#lang racket
- 按照书的开头所述,在每个文件中添加
atom?
谓词 - 如果要重新实现现有过程,请在单独的选项卡或窗口中执行,因为尝试在编辑窗口中重写过程将导致
duplicate definition for identifier
错误.如有必要,请使用几个文件来保存过程定义
- In the
Language
dialog, choose "Use the language declared in the source" - Write
#lang racket
at the top of each file you create - Implement the
atom?
predicate in each file as explained at the very beginning of the book - If you're going to re-implement an existing procedure, do so in a separate tab or window, because trying to rewrite a procedure in the edit window will result in a
duplicate definition for identifier
error. If necessary, use several files for saving the procedure definitions
这篇关于小骗子和球拍的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!