Stop learning alone!

Learn faster and stay on-track by joining this free class with other self-learners.

Register for Structure and Interpretation of Computer Programs now.

Structure and Interpretation of Computer Programs

Class length: 13 weeks. Start anytime.

Creator: kday

Status: Established

Join this class!

Exercise 1.4 and DrScheme

It seems that DrScheme won't support the operator as a compound expression for this example.

(define (a-plus-abs-b a b) ((if (> b 0) + -) a b))

The if condition isn't recognized. Is this a limitation of DrScheme?

reznite
2 years ago

Reply


I figured it out. The language selection of DrScheme can't be Beginning Student. It has to be at least Intermediate Student. A little confusing, but the language selection only exposes certain language characteristics. Anyone using DrScheme should choose Advanced Student.

reznite
2 years ago

Reply

reznite,

I always thought the selections "Beginning Student" and "Advanced Student were associated with the HtDP-Curriculum. So why don't you choose R5RS, or choose the Module put #scheme into the first line of your source files?

P.

Vogel
2 years ago

Reply

* Markdown Cheatsheet:

Link:
[clickable text](http://www.example.com)

New Paragraph:
Hit enter twice

Main heading:
# Main Heading Text

Sub-heading:
## Sub-heading Text

List:
* item 1
* item 2
* item 3

Italics:
*italicized text*

Bold:
**bold text**

YouTube:
URL (http://www.youtube.com/watch?v=Ui4AYPcRkYE) turns into embed code

Full Markdown reference