GNU bug report logs -
#63135
[PATCH 0/3] MATCH-RECROD improvements
Previous Next
Reported by: "(" <paren <at> disroot.org>
Date: Thu, 27 Apr 2023 22:06:01 UTC
Severity: normal
Tags: patch
Done: Josselin Poiret <dev <at> jpoiret.xyz>
Bug is archived. No further changes may be made.
Full log
Message #38 received at 63135 <at> debbugs.gnu.org (full text, mbox):
"(" <paren <at> disroot.org> skribis:
> * guix/records.scm (match-record): Display MATCH-RECORD as the origin of
> "unknown record type field" errors.
> Show the original MATCH-RECORD form, rather than an intermediate LOOKUP-FIELD
> form, within said errors.
[...]
> (lambda (s)
> "Look up FIELD in the given list and return an expression that represents
> its offset in the record. Raise a syntax violation when the field is not
> -found."
> +found, displaying it as originating in form S*."
> (syntax-case s ()
> - ((_ field offset ())
> - (syntax-violation 'lookup-field "unknown record type field"
> - s #'field))
> - ((_ field offset (head tail ...))
> + ((_ s* field offset ())
Maybe ‘source’ or ‘form’ rather than ‘s*’?
Should we add a test in ‘tests/records.scm’ while we’re at it?
Otherwise LGTM!
Ludo’.
This bug report was last modified 1 year and 353 days ago.
Previous Next
GNU bug tracking system
Copyright (C) 1999 Darren O. Benham,
1997,2003 nCipher Corporation Ltd,
1994-97 Ian Jackson.