Re: return value of `string-set!'

2013-08-15 Thread Taylan Ulrich B.
Alexandru Cojocaru writes: > (define (make-copy str) > (let ((s (string-copy str))) > (begin > (string-set! s 0 #\a) > s))) FYI the `begin' there is redundant. (define (make-copy str) (let ((s (string-copy str))) (string-set! s 0 #\a) s)) This is idiomatic Scheme code; it

discussion: serialize procedures and continuations

2013-08-15 Thread Chaos Eternal
In Scheme, procedures are closures, that means it has the code of the procedure itself as well as the required environment for running that procedure. And, mostly, continuations are considered closure. Hence, it is reasonable to expect a way to serialize the closures to disks and/or remote machine

Re: Improving R6RS exception handling in Guile

2013-08-15 Thread Göran Weinholt
Mark H Weaver writes: > Hello all, > > I've cooked up a patch to help improve R6RS exception handling in Guile. > > As noted by Göran Weinholt in , the R6RS > exception handlers in Guile are currently unable to catch native Guile > exceptions. To fix this, the basic ap