Do you use Guile? |
|
By kholmes, Section Diaries
Posted on Wed Jun 19th, 2002 at 19:34:04 GMT |
 |
Do you use Guile? I've always been interested in Lisp since scheme is standard on GNU/Linux systems, I've been toying with it. But I've never gotten far with it...
|
Just recently I downloaded the guile manuals (in info, of course) on my system and I'm starting to make some progress. Before, I basically printed out the R5RS specification for scheme--its short enough to print out but many of the core functions in scheme are rather difficult to grok. I've stayed clear of continuations for now until I get a nice tutorial. But basic things I did in basic are rather difficult to do in scheme, it seems. Such as this algorithm. 1.Create random number r. 2.Ask the user for a guess g. 3.If r < g then display "Too high" 4.If r > g then display "Too low" 5.Otherwise, display "You win." and replace r with a new random number 6.Goto 2 The problem I am having with scheme is that it doesn't seem to have a goto statement :) and the do construct is a strange beast--again, I'll probably need a tutorial rather than the specification. Sounds like a job for Google. |
|
|