chicken-users
[Top][All Lists]
Advanced

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

Re: [Chicken-users] [PATCH] Re: 4.9.0rc1: Error: (assv) bad argument typ


From: Andy Bennett
Subject: Re: [Chicken-users] [PATCH] Re: 4.9.0rc1: Error: (assv) bad argument type: null
Date: Sun, 04 May 2014 13:52:06 +0100
User-agent: Mozilla/5.0 (X11; Linux x86_64; rv:24.0) Gecko/20100101 Icedove/24.4.0

Hi,

> +  (assert-error (alist-ref 'foo 'bar cmp))
> +  (assert-error (alist-ref 'foo '(bar) cmp)))

What's a good predicate to use to check whether what will be passed to
alist-ref will not throw an exception?

The 2nd assert-error rules out a simple list? or an O(1) algorithm.
(Tho' list? is already O(n)).





Regards,
@ndy

-- 
address@hidden
http://www.ashurst.eu.org/
0x7EBA75FF




reply via email to

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