Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

How do I choose what language to use in DrScheme?

I recently downloaded PLT Scheme and DrScheme. When I open DrScheme, I am told to choose a language. However, I'm not familiar with any of my options, and the help guides don't really break it down to help me easily choose which choice.

So, first - is DrScheme and PLT Scheme really the tools I need to learn Lisp and/or Scheme? If so, what are the different languages and which one(s) should I be using?

like image 958
Thomas Owens Avatar asked Nov 08 '08 21:11

Thomas Owens


People also ask

How to choose language in Racket?

Select the Language|Choose Language... menu item, and choose a specific language. After changing the language, click Run to reset the language in the interactions window. The bottom-left corner of DrRacket's main window also has a shortcut menu item for selecting previously selected languages.

What type of programming language is DrRacket?

Racket is a modern functional programming language, a dialect of Lisp and Scheme, good for exploration of ideas and rapid prototyping.

How do you run a Racket program?

On Windows, you can start DrRacket from the Racket entry in the Start menu. In Windows Vista or newer, you can just type DrRacket. You can also run it from its folder, which you can find in Program Files → Racket → DrRacket. On Mac OS, double click on the DrRacket icon.


1 Answers

Just go for "Pretty Big". That will be all you need until you know what the rest are for. I find that R5RS is good, but it does lack the extensions that PLT has added to DrScheme.

edit: I just checked and I guess that both "Pretty Big" and "R5RS" are considered "legacy" in DrScheme 4 and the "Module" language is favored instead. Just make sure that all the files you use with the Module language start with

#lang scheme

Module is a way to specify the language used in the source file rather than globally by the DrScheme interpreter. This means that you can use different languages for different parts of your program by breaking it up into files and indicating in each file the language you're using. If you're just starting out, all you need to worry about is just keeping #lang scheme at the top of all the files you use.

A small note - this declaration is not official Scheme, and needs to be removed if you attempt to use the files in another Scheme interpreter.

like image 90
Kyle Cronin Avatar answered Oct 14 '22 09:10

Kyle Cronin