Re: Guix records

2021-02-10 Thread Dr. Arne Babenhauserheide
Taylan Kammer writes: >>>(import (rnrs records syntactic (6))) >>>(define-record-type (cat make-cat cat?) (fields name age color)) >> I did not know about that shorthand — thank you! >> I always did this: >> (import (srfi srfi-9)) >> (define-record-type >>(make-cat name age color) >

Re: Guix records

2021-02-10 Thread Aleix Conchillo Flaqué
On Tue, Feb 9, 2021 at 4:28 PM Olivier Dion wrote: > On Tue, 09 Feb 2021, Aleix Conchillo Flaqué wrote: > > Hi Olivier, > > > > Unfortunately I don't have an answer, and actually I didn't even know > this > > existed, but I'd love to see a library for it. I added something similar > > (in terms

Looking For Advice On Updating Code From Guile 1.8.8

2021-02-10 Thread Andrew Burgess
Hello, I'm in the process of updating a body of old code from guile 1.8.8 to either guile 2 or 3. Ideally it would be great if the final code could run on both version 2 and version 3. When I first started looking at the problem I was hitting hundreds of warnings like: . warning: possibly

Re: Looking For Advice On Updating Code From Guile 1.8.8

2021-02-10 Thread Massimiliano Gubinelli
Dear Andrew, in my experience in transitioning code from 1.8 to 2/3 (which have essentially the same phasing model as far as I understand) you have to keep in mind two things: 1) In Guile 1.8 macros are expanded only when needed (so for example could do nontrivial computations at runtime), wh