hoshom
2020-4-2 11:45:40

How do I make a macro that’s like the hash function? i.e. has an even number of expressions in the argument positions? Specifically, how do I match them as key value pairs in syntax parse?


hoshom
2020-4-2 12:04:37

For example, in the syntax documentation (meta programming helpers), the docs show how to re-implement let, but what if I wanted it to work without putting bindings in parens, like so: (mylet (a 1) (+ a 2)) The docs show this as an example that rightfully doesn’t work, but how do I make it so that it works like that?


hoshom
2020-4-2 12:05:14

As in, I want (mylet (a 1 b 2) (+ a b)) to work.


hoshom
2020-4-2 12:09:01

Never mind, the “Ellipsis-head Patterns” explains how.


cyrille.deuss
2020-4-2 18:37:29

@cyrille.deuss has joined the channel