PS: a nice example to try in the macro stepper, to see the evaluation order:
#lang racket
(define-syntax (foo stx) #'1)
(define-syntax (bar stx) #'foo)
(let ()
bar
(let ()
bar
(let ()
bar
bar)
(#%expression bar)
bar)
(+ bar bar)
bar)
--
You received this mess
Le lundi 30 janvier 2017 06:25:29 UTC+1, Matias Eyzaguirre a écrit :
> Nice, thanks! I wasn’t aware of that. so macros are expanded in the order
> that the reader reads them, not in so called evaluation order.
>From experience, the order is outside-in, each form after the preceding one
>(except
(And you also want to catch all exns at that points and put them into ch. But I
suspect you’d have known.)
> On Feb 2, 2017, at 9:11 AM, Jay McCarthy wrote:
>
> I would do something like:
>
> (define ch (make-channel))
> (submit-job! jq (lambda () (define ans ...) (channel-put ch ans)))
> (c
I would do something like:
(define ch (make-channel))
(submit-job! jq (lambda () (define ans ...) (channel-put ch ans)))
(channel-get ch ans)
This will synchronously wait for the job to finish. Presumably you'd
do this when you already started up the workers and from a context
where you have a lo
Thank you, Jon and andmkent!
Jon, I understand the reason. However, I guess it's possible to fix that kind
of problem using precedence the same way some languages do with traits and
mixins.
:)
Anyway, thank you again!
--
You received this message because you are subscribed to the Google Grou
5 matches
Mail list logo