cond(itionals) with optional execution of statements

2021-09-11 Thread Damien Mattei
hello, i wrote a little macro (file condx.scm) that allow : cond(itionals) with optional execution of statements before: (define-syntax condx (syntax-rules (exec) ((_) (error 'condx "No else clause")) ((_ (else e ...)) (let () e ...)) ((_ (exec s ...) d1 ...) (let (

Re: Trouble creating SRFI-9 Record in C

2021-09-11 Thread Matt Wette
maybe add (define (make-foo-x a b) (make-foo a b)) then call make-foo-x (or reverse names) On 9/10/21 7:27 PM, paul wrote: Good day guile-users, I am having a struggle with SRFI-9 records.  They look very convenient, so i'd like to use them in my Guile scripts.  However, i'm not sure how to

Re: Trouble creating SRFI-9 Record in C

2021-09-11 Thread paul
Hey Matt, Yeah that was exactly my workaround 🙂 I was wondering whether i could use the syntax transformer more "directly" from C, or something like that. Thanks, paul > On 11 Sep 2021, at 23:31, Matt Wette wrote: > > maybe add > > (define (make-foo-x a b) (make-foo a b)) > > then call ma