[Top][All Lists]

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [Chicken-users] define rec

From: Felix
Subject: Re: [Chicken-users] define rec
Date: Mon, 17 Jun 2013 00:10:41 +0200 (CEST)

From: Evan Hanson <address@hidden>
Subject: Re: [Chicken-users] define rec
Date: Sun, 16 Jun 2013 03:42:42 -0700

> I don't think this is specific to `rec`, but is simply the way CHICKEN
> handles syntax, e.g.
>     #;1> (define when list)
>     #;2> (when 1 2)
>     2
>     #;3> (define-syntax user-when (syntax-rules () ((_ a b . c) (if a (begin 
> b . c)))))
>     #;4> (define user-when list)
>     #;5> (user-when 1 2)
>     2
> I'd guess this is a big thing to change.

Not so big, but complicated. It is no big deal to undefine any
existing syntax with the same name, but it gets problematic when you
are inside a module and that name is already internally registered as
an export, etc., etc.  There are many corner cases to be taken care


reply via email to

[Prev in Thread] Current Thread [Next in Thread]