Re: cond clause does not allow definitions

2024-05-22 Thread Jeronimo Pellegrini
On 2024-05-22 18:07, Pierpaolo Bernardi wrote: In chez: (cond (else (define x 7) x)) 7 x 7 which looks like a bug to me. You may check if x is defined outside of the cond expression in the other implementations which do not raise an error too? Sure! And the result varies a lot! (cond (#t

Re: cond clause does not allow definitions

2024-05-22 Thread Jeronimo Pellegrini
Hello! On 2024-05-22 16:26, Damien Mattei wrote: scheme@(guile-user)> (cond (#t (define x 7) x)) While compiling expression: Syntax error: unknown file:7:10: definition in expression context, where definitions are not allowed, in form (define x 7) I get no error here (Guile 3.0.9.164-e1690,

Re: SRFI-27, deterministic random generator for floats

2023-09-28 Thread Jeronimo Pellegrini
On 2023-09-28 20:56, Zelphir Kaltstahl wrote: Hello Guile Users! Hello! I am trying to deterministically generate random floats using SRFI-27 and I stumbled upon something weird: (use-modules (srfi srfi-27)) (define random-source (make-random-source)) (define random-state (random-sour

database library, siilar to guile-dbi, for Guile 3 ?

2020-04-30 Thread Jeronimo Pellegrini via General Guile related discussions
Hello, I am looking for a database library that would abstract away the underlying db engine. I see that guile-dbi is listed as "Guile 2.2" only on the list of libraries on the Guile website, and the link is broken anyway. Is there something similar to Guile 3? Thanks a lot! Jeronimo