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

2014-05-04 Thread Peter Bex
On Sat, May 03, 2014 at 10:45:04PM -0700, Evan Hanson wrote: @ -hackers: I think `alist-ref`'s fallback search function should match the behavior of core's versions. Objections? I agree. Here's a patch to do that. I've taken the opportunity to get rid of the square brackets in this

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

2014-05-04 Thread Andy Bennett
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

[Chicken-users] [ANN] rest-bind Egg Version 0.4 Released

2014-05-04 Thread Andy Bennett
Hi, I've released version 0.4 of the rest-bind egg. rest-bind Generates wrappers to REST-like HTTP APIs. 0.4 makes the support for APIs that have constant path-fragments after the arguments generally available. This has been sitting in trunk since last July and no one seems to have had any

[Chicken-users] [ANN] spiffy-cgi-handlers Egg Version 0.2 Released

2014-05-04 Thread Andy Bennett
Hi, I've released version 0.2 of the spiffy-cgi-handlers egg. spiffy-cgi-handlers adds support to spiffy for CGI and derivatives (currently only FastCGI). 0.2 adds support to fcgi-handler (the module that provides FastCGI support) for the non-blocking sockets produced by the socket egg in

[Chicken-users] utc-time-seconds and local-time-seconds rationale?

2014-05-04 Thread Michele La Monaca
Hi, I am not an expert here, but I find these functions ill-defined. Both take as input a time-vector which already carries the timezone information (seconds west of UTC). So a time-seconds function just seems the right thing to me. Having to specify the local/utc prefix feels redundant,

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

2014-05-04 Thread Peter Bex
On Sun, May 04, 2014 at 01:52:06PM +0100, Andy Bennett wrote: 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? I don't understand

Re: [Chicken-users] CHICKEN 4.9.0rc1 is available

2014-05-04 Thread John Cowan
Andy Bennett scripsit: We also had to fix the dropbox egg where it calls alist-ref. Some time after CHICKEN 4.7.0 it became mandatory to pass a well formed alist to alist-ref but we were relying on it returning the default value. For the record, it is an error in all versions of Scheme to

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

2014-05-04 Thread John Cowan
Peter Bex scripsit: What's a good predicate to use to check whether what will be passed to alist-ref will not throw an exception? I don't understand the question. See the post I just sent for such a predicate. No, the check only checks while it's cdring down the list, so it will only

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

2014-05-04 Thread Peter Bex
On Sun, May 04, 2014 at 03:00:52PM -0400, John Cowan wrote: Peter Bex scripsit: What's a good predicate to use to check whether what will be passed to alist-ref will not throw an exception? I don't understand the question. See the post I just sent for such a predicate. Thanks.