On Wed, Jul 29, 2015 at 9:30 AM, Matthias Felleisen <matth...@ccs.neu.edu>
wrote:

>
> On Jul 29, 2015, at 7:50 AM, Klaus Ostermann wrote:
>
> > Thanks, Matthew and Matthias. The service on this mailing list is
> incredible!
> >
> > I know it is not cbn because it is local, but a better name didn't come
> to my mind and it is what I need to solve my problem.
>
>
> It's not about locality, the problem is that it runs the thunks at the
> wrong time.
>
> Example:
>
>   (let ((x (/ 1 0)))
>     ((lambda (y) (displayln `(hello world)))
>      x))
>
> in CBN would _first_ show hello-world and then raise the exception but
> your let-cbn will raise the exception first and never display anything on
> the output port.
>

I'm confused. Why would this raise an exception? x is never in strict
position, as `y` is unused in the lambda. But, I could simply be missing
something, and if so, please ignore. :)

-- 
http://www.apgwoz.com

-- 
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