Em segunda-feira, 21 de novembro de 2016 16:08:40 UTC-2, Leif Andersen
escreveu:
> Honestly, I personally like to use let/ec for this. I know it's still using
> continuations, but it is much more lightweight, both syntactically and in
> terms of run-time costs.
>
> (define (do-something)
>
>
Okay, that makes sense. Thanks, all.
On Mon, Nov 21, 2016 at 10:07 AM, Leif Andersen
wrote:
> Honestly, I personally like to use let/ec for this. I know it's still
> using continuations, but it is much more lightweight, both syntactically
> and in terms of run-time
Honestly, I personally like to use let/ec for this. I know it's still using
continuations, but it is much more lightweight, both syntactically and in
terms of run-time costs.
(define (do-something)
(let/ec return
(unless (some-condition)
(return NO))
(do-the-thing)))
Although
On 11/21/2016 12:41 PM, David Storrs wrote:
Edit: I know I could also use call/cc and invoke the continuation to
escape, but that still adds another layer of indentation for something
that in the normal case won't be called.
It's not a big deal, but I was wondering about it.
On Mon, Nov
Edit: I know I could also use call/cc and invoke the continuation to
escape, but that still adds another layer of indentation for something that
in the normal case won't be called.
It's not a big deal, but I was wondering about it.
On Mon, Nov 21, 2016 at 9:37 AM, David Storrs
5 matches
Mail list logo