News for hackers. Stuff that matters.
Re:PLT Scheme is a Racket by mnemonicsloth on Sunday June 06, 2010 @09:37AM (#1408462)
In my experience, recursion is the hard part of teaching a functional language like Sch^H^H^H Racket.

I've often wondered if purpose-building a tool for visualizing recursive processes would help.

They could call it Ponzi.

Re:PLT Scheme is a Racket by henning on Sunday June 06, 2010 @10:29AM (#1408512)
I learned recursion in C. Visualizing the stack, which was encouraged for whatever reason in the books I was reading, was useful to me.
Re:PLT Scheme is a Racket by senki on Sunday June 06, 2010 @10:39AM (#1408522)
In a Ponzi Scheme, one concentrates on the stock, rather than the stack, I think... ;)
Re:PLT Scheme is a Racket by SkyMarshal on Sunday June 06, 2010 @03:23PM (#1408957)
What books were those? Sounds useful, I'd like to read that too.
Re:PLT Scheme is a Racket by henning on Sunday June 06, 2010 @04:38PM (#1409115)
Programming Abstractions in C: http://www.amazon.com/Programming-Abstractions-Second-Comput...

there might have been others but that was the main one where afterward recursion no longer confused or scared me.

there may be other books that are far more suitable. i would be surprised if there weren't, even. but that's the one i used.

Re:PLT Scheme is a Racket by SkyMarshal on Sunday June 06, 2010 @11:24PM (#1409755)
I checked the author, Eric Roberts, and it looks like recursion is his specialty. Good reference, thanks for the link!

http://www.amazon.com/Eric-Roberts/e/B001IOH3DO/ref=ntt_athr...

Re:PLT Scheme is a Racket by expeditious on Sunday June 06, 2010 @12:21PM (#1408662)
> In my experience, recursion is the hard part ...

My limited experience has been different. I've been trying to make time to learn Scheme lately, and recursion seems simple enough. You can just practice it until it makes sense. What I find difficult is understanding what symbols are and what single-quoting actually means. No Scheme book I've seen yet just comes out and actually tells you in plain language what a symbol is.

Re:PLT Scheme is a Racket by blintson on Sunday June 06, 2010 @01:13PM (#1408747)
Single quoting lets you pass a list without evaluating it.

(car (eval '(a b c))) vs. (car (a b c))

Do the same thing.

Have you read SICP? Somewhere in the 1st-3rd chapter there's an explanation of first-order evaluation that scheme uses. Once you know how scheme evals sexps, it makes sense that quote skips some of the steps of evaluation. I strongly recommend the SICP/Little Schemer/Seasoned Schemer if you haven't heard of them.

Re:PLT Scheme is a Racket by expeditious on Sunday June 06, 2010 @04:51PM (#1409135)
> Have you read SICP?

I'm still in chapter 1.

Thanks for the explanation of the single quote. Can I convince you to add something about what a "symbol" is (and if it's connected in some way to the single-quote mechanism)?

Re:PLT Scheme is a Racket by Kototama on Tuesday June 08, 2010 @04:46AM (#1413337)
Re:PLT Scheme is a Racket by expeditious on Friday June 11, 2010 @11:17PM (#1425482)
Thank you.
Re:PLT Scheme is a Racket by daakus on Sunday June 06, 2010 @03:25PM (#1408959)
Don't macros change the rule a bit?