Every story and comment from the Hacker News API, in a layout borrowed from 2001.
A comment on All you need is call/cc (2013). Parent comment
It's dynamically scoped, which is the same as the lexical scope in the untyped lambda calculus. But yes, that is really annoying.
Example from Racket REPL:
> (require racket/control)
> (define f (lambda () (shift k (k 5))))
> (reset (f))
5
There are no comments on this comment yet.
It's dynamically scoped, which is the same as the lexical scope in the untyped lambda calculus. But yes, that is really annoying.
Example from Racket REPL:
> (require racket/control)
> (define f (lambda () (shift k (k 5))))
> (reset (f))
5