Re: [Patch] definitions in when, unless, do as well as in cond- and case-clauses

2022-02-03 Thread Linus Björnstam
Hi guys, It looks like a 3.0.8 might be happening. I am curious to know whether this (perhaps minus the do form) is considered something that the maintainers of guile could find interesting. If subset compatibility of r6|7rs is desired, I could provide a patch for those files as well so that

Re: [Patch] definitions in when, unless, do as well as in cond- and case-clauses

2021-06-17 Thread Maxime Devos
Linus Björnstam schreef op do 17-06-2021 om 14:57 [+0200]: > Guile already does definitions in expression context in > the bodies of lambda and let-variants. I think this is > not a big problem since any valid r6rs code is still valid guile. ‘Guile already does definitions in expression context in

Re: [Patch] definitions in when, unless, do as well as in cond- and case-clauses

2021-06-17 Thread Linus Björnstam
Guile already does definitions in expression context in the bodies of lambda and let-variants. I think this is not a big problem since any valid r6rs code is still valid guile. The discussion is in my opinion whether guile's r6rs modules should enforce this behaviour. That might be a good thing

Re: [Patch] definitions in when, unless, do as well as in cond- and case-clauses

2021-06-17 Thread Maxime Devos
Linus Björnstam schreef op wo 16-06-2021 om 21:11 [+0200]: > Hi there! > > This patch updates some derived conditional forms (and do and and-let*) > to support definitions in expression context. Meaning it makes this valid > code: > > (cond > ((pred? arg) > (define a (something arg)) >