Re: syntax taste: use of unquote in macros

2020-03-29 Thread Zelphir Kaltstahl
On 3/29/20 5:11 PM, Matt Wette wrote: > Hi All, > > I'm not sure if you know about this, but there is a discrepancy in the > way some folks define macros to use unquote (aka ,).   For example, > > > (use-modules (system base pmatch)) > > (pmatch '(foo "bar")  ((foo ,val)  (write val) (newline)))

syntax taste: use of unquote in macros

2020-03-29 Thread Matt Wette
Hi All, I'm not sure if you know about this, but there is a discrepancy in the way some folks define macros to use unquote (aka ,).   For example, > (use-modules (system base pmatch)) > (pmatch '(foo "bar")  ((foo ,val)  (write val) (newline))) => "bar" > (use-modules (ice-9 match)) > (match '(