I see. I understand that racket's threading macros are NOT SIMPLE
Racket's threading macros can reduce lambda object creations.
(define (add2 x) (+ x 2))
(~> 1 add2) ; ok
(~> 1 ((lambda (x) (+ x 2)) _)) ; ng -> ok
(~> 1 ((curry + 2) _)) ; ng -> ok
(define/public (incr) (lambda (y) (+ x y)))))
(define adder (new adder% [x 2]))
(send adder incr) ; ok
(~> 1 ((send adder incr) _)) ; ng -> ok
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
For more options, visit https://groups.google.com/d/optout.