Hi Wolfgang,

Thanks for the quick feedback!
[...]

Also, the ‘string-fold’ example using ‘for-each->fold’ gives me a
> cryptic error on Guile:
>
>     scheme@(guile-user)> (string-fold cons '() "hello")
>
>     ice-9/boot-9.scm:1683:16: In procedure raise-exception:
>     Wrong type (expecting resumable continuation): #<vm-continuation
>       7fbaade232d0>
>
> I’m not sure what the problem is. The tests, including the one that
> tests ‘for-each->fold’, pass without errors.
>

It is one of Guile's quality problems... Its "string-fold" is implemented
in C IIRC and Guile's delimited continuations do not work across the
Scheme/C border, making them IMO a bit useless for library writers except
for toy examples.

Marc

Reply via email to