[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/; 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.


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?. 


reply via email to

[Prev in Thread] Current Thread [Next in Thread]