I get used of C and java to write bore stuff for work in past 3 months.I fed up with windows-related development that destroy ur creativity day by day.OK,Im complain too much today.
I have to tell you guys that tail recurrsive is really cool stuff that can provide a low cost for performance(in facto,when u write a fibonacci).Scheme is cool lang that include many modern programming language's feature when her was born(espeically,the GC).I just have spent a little bit of time for study the syntax and go through with 2 trivial stuffs like this.......
(define cool (lambda (x)
(if (= x 0)
(let sum( (num x) (sp 1)) ;sp=stationary point
(if (= num 1) sp
(sum (- num 1) (* num sp)))))))
(define cool2 (lambda (n)
(if (= n 0)
(let fib ( (num n) (result 1) (tmp 0))
(if (= num 1)
(fib (- num 1) (+ result tmp) result))))))
btw:come on,roll to say "goodbye" to Microsoft(it is evil)'s bore stuff except u're a system programmer who work with windows kernel(WRK).