[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [Chicken-hackers] [PATCH] Remove comparator type specializations for
From: |
Peter Bex |
Subject: |
Re: [Chicken-hackers] [PATCH] Remove comparator type specializations for zero and one arguments |
Date: |
Mon, 1 Jun 2015 20:44:28 +0200 |
User-agent: |
Mutt/1.5.21 (2010-09-15) |
On Mon, Jun 01, 2015 at 02:30:29PM -0400, address@hidden wrote:
> Peter Bex scripsit:
>
> > Here's a patch to restore allowance of zero or single argument calls
> > of numeric comparator procedures in CHICKEN 5. It's a little ugly,
> > as these kind of exceptions generally are, so any cleanups are welcome.
>
> I'm not disagreeing with this patch, but would it be just as easy to
> rewrite these calls as just #t?
That's what's already happening in types.db so the compiler will already
do that, but in evaluated code or cases like (apply + (read)) it will
directly call this C function and it needs to manually check the argument
count. That's the inconsistency I mentioned in my earlier message.
Cheers,
Peter
signature.asc
Description: Digital signature