GNU bug report logs -
#51383
noobie way of incorrectly using (guix records)
Previous Next
Reported by: Joshua Branson <jbranso <at> dismail.de>
Date: Mon, 25 Oct 2021 06:17:02 UTC
Severity: normal
Done: Joshua Branson <jbranso <at> dismail.de>
Bug is archived. No further changes may be made.
Full log
View this message in rfc822 format
[Message part 1 (text/plain, inline)]
Your bug report
#51383: noobie way of incorrectly using (guix records)
which was filed against the guix package, has been closed.
The explanation is attached below, along with your original report.
If you require more details, please reply to 51383 <at> debbugs.gnu.org.
--
51383: http://debbugs.gnu.org/cgi/bugreport.cgi?bug=51383
GNU Bug Tracking System
Contact help-debbugs <at> gnu.org with problems
[Message part 2 (message/rfc822, inline)]
Bug will not be fixed.
[Message part 3 (message/rfc822, inline)]
So I made a pretty noobie-like mistake a few minutes ago. When one
tries to make a (record-configuration), he invariably create an
infinite number of records. The guile compiler eventually runs out
of memory and stops compiling.
(use-modules (guix records))
(define-record-type* <record-configuration>
record-configuration make-record-configuration
record-configuration?
(command record-configuration-command
;; the error is here is on the next line
(default (record-configuration))))
(record-configuration)
This is not possible with (srfi sfri-9)
(use-modules (srfi srfi-9))
(define-record-type <employee>
(make-employee name age (make-employeee 5 5 5))
employee?
(name employee-name)
(age employee-age set-employee-age!)
(salary employee-salary set-employee-salary!))
(make-employee)
The above results in a syntax error.
Is this a "feature" and not a bug? I feel like this is a trivial bug,
and I am certain that other bugs are of greater importance.
Thanks,
Joshua
This bug report was last modified 3 years and 207 days ago.
Previous Next
GNU bug tracking system
Copyright (C) 1999 Darren O. Benham,
1997,2003 nCipher Corporation Ltd,
1994-97 Ian Jackson.