Scheme learning sentiment

xiaoxiao2021-03-05  20

I heard that Scheme is a good language, regarding a dialect of Lisp. Do not say anything, in order to control the language and the script control language used by the Sawfish window manager embedded in Emacs! Besides, the famous wizard "SICP" said that it is more beneficial to beginners, can concentrate on solving problems, rather than waste time in the language of language ... In fact, the real purpose is, even bought it. "SICP" book, does not learn Scheme, seems to be burn money. . .

Tony said nonsense, the use of the Debian system, installed Mzscheme this environment. Debian is an excellent system, which is installed on the top of Mzscheme, and you are configured with an APT-GET Install Mzscheme, which is fully automatically installed. About this command, look back, even to Linux section research. After installing the environment, you have to run a Scheme. Ok. . . To achieve a classic program, "Hello, World!" To the screen. (Note! This article is a note that learning "TEACH YOURSELF Scheme in Fixnum Days" (http://www.ccs.neu.edu/Home/dorai/ty-scheme/ty-scheme-en.html#node_toc_start) Give its source program first

IT's my first scheme program

(Begin)

(Display "Hello, World!")

NEWLINE

)

Hey, look at the program, dumb, don't know how to run? The following is the focus. . .

Operating program method 1:

Since Scheme is an explanatory program, so. . . Hey, do you understand? Launch Mzscheme, is white, just under console, enter Mzscheme, Enter, and enter Mzscheme's listening environment. The prompt of Mzscheme's listening environment is ">", then you can knock this program in.

Run Method 2: Put the above program, save the Hello.scm file, start Mzscheme, input (Load "Hello.scm") and then. . .嘿嘿

Operation method 3: The above method is needed to enter the Mzscheme environment, this, use it to be more depressed, even feel, you can try Mzscheme -R Hello.scm in Console, "Hello, World! "

Will use the tools is the most basic, otherwise, even if you make it back in the language, you will not use tools, this. . . Will not use it. Oh, I almost forgot, exit in the Mzscheme environment, with (exit) this form to exit, of course, under Linux, you can use Ctrl D to exit. . .

转载请注明原文地址:https://www.9cbs.com/read-33257.html

New Post(0)