From: Ken A. <kan...@bb...> - 2004-11-10 23:22:27
|
A while back, i was playing with lazy evaluation trying to understand monads and ran into a stack overflow problem that surprised me. This srfi explains it. http://srfi.schemers.org/srfi-45/srfi-45.html It turns out that the Ableson and Sussman book used what's called the "odd" style of lazyness which leads to problems http://mitpress.mit.edu/sicp/. This is the style i was using. The "even" style described in the srfi corrects the problem. And this is what the lazy functional languages use. k |