chicken-users
[Top][All Lists]
Advanced

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

Re: [Chicken-users] ANN: eping


From: Michele La Monaca
Subject: Re: [Chicken-users] ANN: eping
Date: Tue, 27 Aug 2013 01:22:59 +0200

On Sat, Aug 24, 2013 at 11:28 AM, Jörg F. Wittenberger
<address@hidden> wrote:
> On Aug 22 2013, Michele La Monaca wrote:
>
>> How can I check if a symbol is bound to a value?
>
>
> Oleg Kiselyov's receipe might be helpful here:
> http://okmij.org/ftp/Scheme/macro-symbol-p.txt

Intriguing reading material, thanks. But isn't my proposed approach a
much simpler solution?

(define-syntax symbol??
  (syntax-rules ()
    ((_ x) (if (symbol? 'x) #t #f))))

It passes all Kiselyov's  tests.

Michele



reply via email to

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