> On Jan 28, 2016, at 7:08 PM, Jack Firth <jackhfi...@gmail.com> wrote:
> 
> Out of idle curiosity: why `(define (topological-sort ...) (local ((define 
> (topological-sort ... done)) (topological-sort ... '())` rather than using a 
> local define and a different name like `topological-sort/accumulator`?


That would be the name I’d give to pedantically presented functions in HtDP. 

When I actually write these functions down, I write the accumulator version at 
the top level, including tests. Then I copy the first line, lift the 
definition, place it into a local, add the body, and I know it works. (When I 
interact with ‘kids’ I show them exactly that but most of them try to work thru 
this on their own.) 

-- 
You received this message because you are subscribed to the Google Groups 
"Racket Users" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to racket-users+unsubscr...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to