[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: |
Sun, 31 May 2015 19:08:37 +0200 |
User-agent: |
Mutt/1.5.21 (2010-09-15) |
On Sun, May 31, 2015 at 12:18:09PM -0400, John Cowan wrote:
> There's some argument for (apply = list) to do the right thing if
> list is length 0 or 1.
Good point.
> Here's a quick investigation report. Of my suite of 46 Schemes,
> MIT, Gambit, Chicken, Guile, SCM, KSi, Sizzle all accept (=) and (= 1)
> and return #t. In addition, STklos, Chez, Vicare, Ypsilon, IronScheme,
> JScheme, STklos, XLisp, Elk, Llava, SXM return #t to (= 1), and
> FemtoLisp returns #f.
Given that it's so widespread to accept this, perhaps the better
fix is to make sure that CHICKEN 5 supports it once more.
Either way, right now the compiled version of (=) returns #t
while the interpreted version raises an exception in CHICKEN 5,
which is inconsistent.
Cheers,
Peter
signature.asc
Description: Digital signature