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
Message #5 received at submit <at> debbugs.gnu.org (full text, mbox):
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.