Re: SXML and optional attributes

2024-12-22 Thread Luis Felipe
On 22/12/24 21:38, Maxime Devos wrote: Unquote-splicing (,@) is your friend: `(foo ,@(if p? '(a (b) c) '()) d) When p? -> (foo a (b) c d). When (not p?) -> (foo d). Now do this for SXML … Ah, splicing... yes Maxime, that works :) So I applied it as follows: (define* (special-input #:key

RE: SXML and optional attributes

2024-12-22 Thread Maxime Devos via General Guile related discussions
Unquote-splicing (,@) is your friend: `(foo ,@(if p? '(a (b) c) '()) d) When p? -> (foo a (b) c d). When (not p?) -> (foo d). Now do this for SXML …