[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: srfe records in reworked match
From: |
stefan |
Subject: |
Re: srfe records in reworked match |
Date: |
Fri, 23 Apr 2010 09:52:42 +0200 |
User-agent: |
KMail/1.12.4 (Linux/2.6.31.12-0.2-desktop; KDE/4.3.5; x86_64; ; ) |
On Wednesday 21 April 2010 10:40:29 am Ludovic Courtès wrote:
> As noted in Shinn’s match-cond-expand.scm, this record matching form is
> not ideal:
>
> ;; Annoying unhygienic record matching. Record patterns look like
> ;; ($ record fields...)
> ;; where the record name simply assumes that the same name suffixed
> ;; with a "?" is the correct predicate.
>
Entering,
scheme@(guile-user)> (macroexpand '(n? x))
(if (struct? x) (eq? (struct-vtable x) n) #f)
So, I just tok the expanded line directly instead of n?.
/Stefan
Re: srfe records in reworked match,
stefan <=
Re: srfe records in reworked match, stefan, 2010/04/23