[racket] beginner's question on learning Scheme

From: Matthias Felleisen (matthias at ccs.neu.edu)
Date: Wed Aug 25 11:32:29 EDT 2010

Open DrRacket, choose Language, click radio button "Use the language declared in the source", type 

#lang r6rs

(import (rnrs))

(define !
  (lambda (x) 
    (if (= x 0)
        (* x (! (- x 1))))))

and in the repl 

 > (! 10)

and you'll get the correct result. 

On Aug 25, 2010, at 11:19 AM, philippe sismondi wrote:

> I am new to Racket and Scheme generally, having started learning Common Lisp about a year ago.
> I have a question which is probably answered somewhere in the Racket docs or in the archives of this mailing list, but it would be of great help to get a quick answer.
> I ordered the 4th edition of the Dybvig book "The Scheme Programming Language", and then set to work on the book using DrRacket. I discover that the language in Dybvig (r6rs) is not the same as Racket.
> Can I use Racket to learn the Scheme language as presented in Dybvig? How might I do this? That is, does the set of software that comes with Racket support that language?
> More specifically I want to have a REPL that handles Scheme as in Dybvig.
> Thanks for your patience with a noob question.
> Best,
> - Phil -
> _________________________________________________
>  For list-related administrative tasks:
>  http://lists.racket-lang.org/listinfo/users

Posted on the users mailing list.