Re: Threading / Pipe Macro (Chris Vine, Mark H Weaver)

2019-07-08 Thread Linus Björnstam
The comparison is also not really fair. The syntax-rules macro is doing a lot more. A simple syntax-rules macro just inserting everything in the leftmost position would loo something like (define-syntax -> (syntax-rules () ((-> exp) exp) ((-> exp (proc args ...) rest ...) (-> (proc exp

Re: Threading / Pipe Macro (Chris Vine, Mark H Weaver)

2019-07-08 Thread Chris Vine
On Mon, 8 Jul 2019 23:10:28 +0200t Zelphir Kaltstahl wrote: > Hello Chris and hello Mark, > > Thank you both for posting your macros! This is really useful and I am > looking forward to using this in the next situation where there would be > deep nesting or where it seems appropriate in other way

Re: Threading / Pipe Macro

2019-07-08 Thread Zelphir Kaltstahl
Ah thanks! I did not find that before. Good to know where to look for more! I should link to other places, where one can find macros in my repo. On 7/8/19 2:49 AM, Erik Edrosa wrote: > On 7/7/19 6:42 AM, Zelphir Kaltstahl wrote: >> (1) Does something already exist? >> > This project was posted no

Re: Threading / Pipe Macro (Chris Vine, Mark H Weaver)

2019-07-08 Thread Zelphir Kaltstahl
Hello Chris and hello Mark, Thank you both for posting your macros! This is really useful and I am looking forward to using this in the next situation where there would be deep nesting or where it seems appropriate in other ways. To understand what is going on in the macro, I wrote a lot of expla

Re: Threading / Pipe Macro

2019-07-08 Thread Linus Björnstam
I am the author of that if there are any questions. It uses syntax-rules so it should be portable to any r567rs scheme by just replacing the module definition. In r6rs pure also by exporting the <> and <...> syntax, preferably in a way so that both srfi-26 and threading can be used. This does no