Re: [Chicken-users] unbound variable: or

2015-05-30 Thread John Cowan
Michele La Monaca scripsit: Gambit has it. Too bad Chicken 4 dropped it. You're right; I was too hasty. There are a number of other Schemes that accept it also. However, it does not fit into the {define-syntax, let-syntax, let*-syntax, letrec-syntax} set provided by all post-R4RS Schemes.

Re: [Chicken-users] unbound variable: or

2015-05-30 Thread chi
On 05/30/2015 07:02 AM, Peter Bex wrote: As has been pointed out time and again, it is fundamentally broken. Generally when that is true, you can link to a prepared document explaining it clearly and unambiguously. Since it has been carefully explained, and rehashed to the point of ad nauseum,

[Chicken-users] use vs uses?

2015-05-30 Thread chi
(use a) versus (declare (uses a)) what's the differences between those? (use a) will load module...library...module... what do you call the thing that (use) loads? Is it a library or a module? ...whereas (declare (uses a)) just requires that library to be loaded I think? But then wouldn't

Re: [Chicken-users] unbound variable: or

2015-05-30 Thread Peter Danenberg
Quoth chi on Sweetmorn, the 5th of Confusion: I mean it's obvious define-macro is a bad idea. I wonder why no one ever mentions Juergen Lorenz' wonderful define-macro: http://api.call-cc.org/doc/bindings#def:define-macro Looks like it's syntactic sugar around implicit-renaming; gives one the

Re: [Chicken-users] unbound variable: or

2015-05-30 Thread Peter Bex
On Fri, May 29, 2015 at 10:23:03PM -0400, John Cowan wrote: Googling for syntax-rules will point you to a lot of basic tutorials. When you want something more advanced, look for JRM's Syntax-rules Primer for the Mildly Eccentric. Read that until you have trouble understanding it; you now know

Re: [Chicken-users] unbound variable: or

2015-05-30 Thread Peter Bex
On Sat, May 30, 2015 at 03:42:41PM +0200, Michele La Monaca wrote: On Sat, May 30, 2015 at 4:23 AM, John Cowan co...@mercury.ccil.org wrote: Jinsong Liang scripsit: I want to learn some basic macro programming in Chicken. However, it seems there are multiple macro definition APIs in

Re: [Chicken-users] unbound variable: or

2015-05-30 Thread Michele La Monaca
On Sat, May 30, 2015 at 4:23 AM, John Cowan co...@mercury.ccil.org wrote: Jinsong Liang scripsit: I want to learn some basic macro programming in Chicken. However, it seems there are multiple macro definition APIs in Chicken: define-syntax, syntax-rules, syntax-case, define-macro. Which one

Re: [Chicken-users] unbound variable: or

2015-05-30 Thread Michele La Monaca
On Sat, May 30, 2015 at 4:02 PM, Peter Bex pe...@more-magic.net wrote: On Sat, May 30, 2015 at 03:42:41PM +0200, Michele La Monaca wrote: On Sat, May 30, 2015 at 4:23 AM, John Cowan co...@mercury.ccil.org wrote: Jinsong Liang scripsit: I want to learn some basic macro programming in