[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [Chicken-hackers] [PATCH] Remove comparator type specializations for
Re: [Chicken-hackers] [PATCH] Remove comparator type specializations for zero and one arguments
Sun, 31 May 2015 19:08:37 +0200
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.
> 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.
Description: Digital signature