***chris is now known as Guest2590
***Guest2590 is now known as chrislck
<lilyp>sneek: later tell dthompson yeah the joke kinda is that the inner lambda has to roll the main loop – which fwiw would work if your game/engine had a global main-loop:iter <lilyp>sneek later tell dthompson I don't think either Tsukundere or Chickadee have something like that though <andrzejku>do you have maybe something better than official Guile Reference? <andrzejku>there are usually something with (if condition) in examples <andrzejku>unmatched-paren: ahh thsi hygiene I read it is about to not capture accidentally outer variables <andrzejku>as I understood (begin exp ...) will execute all expressions given as the parameters <unmatched-paren>if you want to be able to do (foo [ARG1] [ARG2] [ARG3]...) then use ..., if you want to do (foo (lambda () [ARG1] [ARG2] [ARG3])) then just accept a lambda argument <unmatched-paren>although if you're going to accept a lambda you should probably just use a function <unmatched-paren>source expression failed to match any pattern in form (syntax-rules () ((_ name body ...) (display name) (newline) body ...)) <andrzejku>I am running the file using guile filename.scm <unmatched-paren>btw, there's a shorthand for define-syntax/syntax-rules with one pattern <andrzejku>I found that Guile is not good in errors and maybe some modules must be imported <unmatched-paren>(define-syntax-rule (smth name body ...) (display name) (newline) body ...) <andrzejku>unmatched-paren: it looks for me that we can not put (define-syntax-rule (smth name body ...) (display name)) <andrzejku>(define-syntax-rule (smth name body ...) (display name) (begin body ...)) <unmatched-paren>so (syntax-rules ((...) (...) (...) (...))) as we're doing won't worj <andrzejku>ya I pack the second rule argument in (lambda () () ()) but it needs additional () to be executed <andrzejku>body and ... it is the same like the list of expr expr expr <andrzejku>unmatched-paren: ahh that's enough hard to understand <unmatched-paren>so define-macro uses quote/unquote to construct actual syntax objects <andrzejku>unmatched-paren: is it explained in any book? <andrzejku>unmatched-paren: by the way I got a little schemer and The Scheme Programming Language <sneek>Welcome back dthompson, you have 2 messages! <sneek>dthompson, lilyp says: yeah the joke kinda is that the inner lambda has to roll the main loop – which fwiw would work if your game/engine had a global main-loop:iter <sneek>dthompson, lilyp says: I don't think either Tsukundere or Chickadee have something like that though <dthompson>lilyp: yeah chickadee just uses coroutines instead. in the context of a coroutine a call-with-cursor procedure would work as expected. *spk121 just can't autotools any more ***daviid` is now known as daviid