Re: [PATCH 2/2] utils: Support defaults in substitute-keyword-arguments.

2016-09-30 Thread Ludovic Courtès
Eric Bavier skribis: > On Sat, 24 Sep 2016 11:21:40 +0900 > l...@gnu.org (Ludovic Courtès) wrote: >> >> > +replaced by EXP. EXP is evaluated in a context where VAR is bound to the >> > +previous value of the keyword argument, or DFLT if given." >> > +(syntax-case x () >> > + ((_ origin

Re: [PATCH 2/2] utils: Support defaults in substitute-keyword-arguments.

2016-09-25 Thread Eric Bavier
On Sat, 24 Sep 2016 11:21:40 +0900 l...@gnu.org (Ludovic Courtès) wrote: > > > +replaced by EXP. EXP is evaluated in a context where VAR is bound to the > > +previous value of the keyword argument, or DFLT if given." > > +(syntax-case x () > > + ((_ original-args ((kw var dflt ...) exp)

Re: [PATCH 2/2] utils: Support defaults in substitute-keyword-arguments.

2016-09-23 Thread Ludovic Courtès
Eric Bavier skribis: > From: Eric Bavier > > * guix/utils.scm (substitute-keyword-arguments): Allow default value > declarations. > * tests/utils.scm (substitute-keyword-arguments): New test. Good idea! [...] > +replaced by EXP. EXP is evaluated in a context where VAR is bound to the > +pre

[PATCH 2/2] utils: Support defaults in substitute-keyword-arguments.

2016-09-20 Thread Eric Bavier
From: Eric Bavier * guix/utils.scm (substitute-keyword-arguments): Allow default value declarations. * tests/utils.scm (substitute-keyword-arguments): New test. --- guix/utils.scm | 34 -- tests/utils.scm | 20 2 files changed, 40 insertions(