On Thu, Oct 8, 2015 at 6:23 PM, Alexis King <lexi.lam...@gmail.com> wrote: >> On Oct 8, 2015, at 1:34 PM, Jay McCarthy <jay.mccar...@gmail.com> wrote: >> >> FWIW, I find my threading macro to be very powerful, pretty clear when >> used complicatingly, and at about power-level 9,000: >> >> https://github.com/jeapostrophe/exp/blob/master/threading-arrow.rkt > > I have to agree with Jack and Alex here: I find that a little terrifying, and > I would not want to need to understand any code that used it.
I'm inspired by your terror. >> My opinion is to include something like this in remix along with some >> nice syntax for cut (what ignorant people call "function literals".) > > I admit I can’t really disagree with this point. I’m mostly just interested > in what syntax you have in mind. The idea would be to make it like super cut, but with . to give it that delicious C-like crunchy topping https://github.com/jeapostrophe/exp/blob/master/scut.ss So, λ.(+ $ 1) => (λ (x) (+ x 1) λ.(+ $.0 $.1) => (λ (x y) (+ x y)) λ.(+ $.x 1) => (λ (#:x x) (+ x 1) λ.(+ $.x $8) => (λ (#:x x a0 a1 a2 a3 a4 a5 a6 a7 a8) (+ x a8) λ.(apply + $.0 $.…) => (λ (x . args) (apply + x args)) -- Jay McCarthy http://jeapostrophe.github.io "Wherefore, be not weary in well-doing, for ye are laying the foundation of a great work. And out of small things proceedeth that which is great." - D&C 64:33 -- 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.