-
Hello everyone, I'm new to Gerbil and I'm trying to understand the behavior of the Here is a minimal piece of code that demonstrates the problem: (guard (exception
((assq 'a exception) => cdr))
(raise (list (cons 'a 42)))) Based on the R7RS specification, I expect this code to return
What I find confusing is that this same code works as expected in Gambit. My question is: am I misunderstanding something about how Thanks in advance for your help! |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment 4 replies
-
Are you using the appropiate prelude for r7rs? |
Beta Was this translation helpful? Give feedback.
Well, if you use the r7rs prelude the surface syntax and predefined macros are just standard/vanilla scheme. But you can still import everything you need or want to use, even from
:gerbil/core
, which is the gerbil prelude itself.Note that you can also use our
try
macro, it is defined in:std/sugar
. It has much saner semantics than guard!