i finalize my ideas about 'controls' and loops (with break and continue, as
while feature them ,even if scheme and macro do not allow ? (if someone
else have idea and solution about it?) implements of 'continue and 'break
because hygiene forbid it)
https://github.com/damien-mattei/library-FunctProg
my previous question ,clearly more, is :
(define-syntax for/bc
(syntax-rules (continue break)
((_ (init test incrmt) b1 ...)
(call/cc (lambda (break)
(let ()
init
(let loop ()
(when test
(call/cc (lambda (continue) b1 ...))
incrmt
(loop)
is there a way to make working
i try to make a for with break and continue the way C language do it, i
works with break but if i add a continue feature i then loose the break
feature, here is my code:
(define-syntax for/bc
(lambda (stx)
(syntax-case stx ()
((kwd (init test incrmt) body ...)
(with-syntax
((BR
Le 04/09/2022 à 10:19, Damien Mattei a écrit :
my previous question ,clearly more, is :
(define-syntax for/bc
(syntax-rules (continue break)
((_ (init test incrmt) b1 ...)
(call/cc (lambda (break)
(let ()
init
(let loop ()
(when test
(call/cc (lambda (continue) b1 ..
Le 04/09/2022 à 11:54, Damien Mattei a écrit :
i try to make a for with break and continue the way C language do it, i
works with break but if i add a continue feature i then loose the break
feature, here is my code:
(define-syntax for/bc
(lambda (stx)
(syntax-case stx ()
((kwd (i
Hi,
Adding back the list in CC.
Le 04/09/2022 à 12:49, Damien Mattei a écrit :
hello jean,
yes (thank you for your help) i'm a sorcerer's apprentice that always
push to later the understanding of literals in syntax-rules, but by
instinct i finally succeed in making works the weird thing :-)
yes very good
then break si not overwritten, using module, i do not know if modules is
finally standardised in R6RS, and in guile?
a few problem with module i hope to fix it later but it works with your
example, not sure let/ec is standart?
i will continue later
Damien
On Sun, Sep 4, 2022 at 1
Hello Guile users!
Recently I've looked at "how to write a wav file?" and wrote some code to output
in RIFF-WAVE fie format:
https://notabug.org/ZelphirKaltstahl/guile-examples/src/master/sound/riff-wave.
It only writes a file currently, and does not read in any files yet. Hopefully I
will wo
Le 04/09/2022 à 14:00, Damien Mattei a écrit :
yes very good
then break si not overwritten, using module, i do not know if modules
is finally standardised in R6RS, and in guile?
Guile supports R6RS libraries, but it's not the same as its traditional
use-modules/define-module forms.
htt
Very cool, I look forward to checking it out!
September 4, 2022 12:16 PM, "Zelphir Kaltstahl"
wrote:
> Hello Guile users!
>
> Recently I've looked at "how to write a wav file?" and wrote some code to
> output in RIFF-WAVE fie
> format:
> https://notabug.org/ZelphirKaltstahl/guile-examples/
yes in fact a lot of function related to syntax (datum->syntax, etc) are
not in R6RS and R7RS-small,
i have to keep that in mind because i want to write a library that could be
portable between scheme implementation and that support curly-infix ,less
than a number of scheme that count with the fing
Le 04/09/2022 à 16:41, Damien Mattei a écrit :
yes in fact a lot of function related to syntax (datum->syntax, etc)
are not in R6RS and R7RS-small,
datum->syntax actually *is* R6RS, in the "libraries" document. See
http://www.r6rs.org/final/r6rs-lib.pdf page 55.
(It is not in R7RS small,
12 matches
Mail list logo