[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [Chicken-users] New immediate values (was: DBI)
From: |
felix winkelmann |
Subject: |
Re: [Chicken-users] New immediate values (was: DBI) |
Date: |
Fri, 29 Feb 2008 13:57:43 +0100 |
On Fri, Feb 29, 2008 at 1:41 PM, Tobia Conforto <address@hidden> wrote:
> felix winkelmann wrote:
> >> (define sql-null (new-immediate-value))
> >> (define (sql-null? x) (eq? x sql-null))
> >>
> >> With the certainty that sql-null won't be eq? to anything else at
> >> all, won't be a list, a record, nothing at all except itself. I
> >> think this could have a few uses.
> >
>
> > It would probably have uses, but what would you gain? All you need
> > is a distinct unique object:
> >
> > (define sql-null (gensym 'sql-null))
>
>
> This is still a symbol.
>
> People are using (void) because it's nothing but (void), that is, all
> standard predicates (symbol?, pair?, number?, string?...) return #f.
> Only its own predicate returns #t.
>
Would a db interface include symbols as output?
cheers,
felix (who would like to keep the number of immediate types small)
- Re: void as a return value (Re: [Chicken-users] DBI), (continued)
- Re: void as a return value (Re: [Chicken-users] DBI), Vincent Manis, 2008/02/27
- Re: [Chicken-users] DBI, John Cowan, 2008/02/27
- Re: [Chicken-users] DBI, felix winkelmann, 2008/02/28
- Re: [Chicken-users] DBI, Graham Fawcett, 2008/02/28
- [Chicken-users] New immediate values (was: DBI), Tobia Conforto, 2008/02/28
- Re: [Chicken-users] New immediate values (was: DBI), Graham Fawcett, 2008/02/28
- Re: [Chicken-users] New immediate values (was: DBI), John Cowan, 2008/02/28
- Re: [Chicken-users] New immediate values (was: DBI), Mario Domenech Goulart, 2008/02/29
- Re: [Chicken-users] New immediate values (was: DBI), felix winkelmann, 2008/02/29
- Re: [Chicken-users] New immediate values (was: DBI), Tobia Conforto, 2008/02/29
- Re: [Chicken-users] New immediate values (was: DBI),
felix winkelmann <=
- Re: [Chicken-users] New immediate values (was: DBI), Graham Fawcett, 2008/02/29
- Re: [Chicken-users] New immediate values (was: DBI), Tobia Conforto, 2008/02/29
- Re: [Chicken-users] New immediate values (was: DBI), Graham Fawcett, 2008/02/29
- Re: [Chicken-users] New immediate values, Ozzi Lee, 2008/02/29
- Re: [Chicken-users] New immediate values (was: DBI), John Cowan, 2008/02/29
- Re: [Chicken-users] New immediate values (was: DBI), felix winkelmann, 2008/02/29
- Re: [Chicken-users] New immediate values (was: DBI), Alaric Snell-Pym, 2008/02/29
- Re: [Chicken-users] New immediate values (was: DBI), John Cowan, 2008/02/29
- Re: [Chicken-users] New immediate values (was: DBI), Alaric Snell-Pym, 2008/02/29
- Re: [Chicken-users] New immediate values (was: DBI), John Cowan, 2008/02/29