Re: [racket-users] Re: tilda - a threading macro full of itself
> For example, it's better if a threading macro expands using the `#%app` > bound at the macro use site. (Whereas by default, macros expand using > identifiers bound where the macro is defined.) > > https://github.com/lexi-lambda/threading/issues/3 > > Got this one right in the ~> macro, but not in define~>, nor in lambda~>. Thanks Greg, you totally nailed a bug )) > Also you might want to treat `quote` forms specially, and not "thread > into" them. > > https://github.com/lexi-lambda/threading/issues/2 > This one is a non-issue since the macro disallows naked expressions, that is every clause is expected to be consistently wrapped in parens, and hole-markers either need to appear in the clause or the clause "re-strarts" the threading e.g. (~> ht 'x) is the same as (~> ht (quote x)) => 'x, since (quote x) has no marker, ht gets thrown out. If you really want Clojure style hash-table accessor a-la keywords, assuming you have appropriate #%app in place, you'd write: (~> ht ('x ~)), that is you have to be explicit with your hole-markers. -- 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. To view this discussion on the web visit https://groups.google.com/d/msgid/racket-users/f11fcf85-ae86-4670-88b1-694552ea5951%40googlegroups.com. For more options, visit https://groups.google.com/d/optout.
Re: [racket-users] Re: tilda - a threading macro full of itself
> I like this. Reminds me of `rackjure/threading`, but more involved. A few years ago, after Alexis released https://github.com/lexi-lambda/threading I updated rackjure to re-provide that. Speaking of which, a couple issues there might be interesting for you, Vlad. For example, it's better if a threading macro expands using the `#%app` bound at the macro use site. (Whereas by default, macros expand using identifiers bound where the macro is defined.) https://github.com/lexi-lambda/threading/issues/3 Also you might want to treat `quote` forms specially, and not "thread into" them. https://github.com/lexi-lambda/threading/issues/2 -- 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. To view this discussion on the web visit https://groups.google.com/d/msgid/racket-users/87r29axhzq.fsf%40greghendershott.com. For more options, visit https://groups.google.com/d/optout.
[racket-users] Re: tilda - a threading macro full of itself
I like this. Reminds me of `rackjure/threading`, but more involved. -- 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. To view this discussion on the web visit https://groups.google.com/d/msgid/racket-users/7b1ae615-3398-4620-96b9-ecc9cdd2603a%40googlegroups.com. For more options, visit https://groups.google.com/d/optout.