chicken-janitors
[Top][All Lists]
Advanced

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

[Chicken-janitors] #314: spiffy-request-vars: as-boolean enhancements


From: Chicken Trac
Subject: [Chicken-janitors] #314: spiffy-request-vars: as-boolean enhancements
Date: Mon, 09 Aug 2010 03:19:22 -0000

#314: spiffy-request-vars: as-boolean enhancements
-----------------------------------------------------+----------------------
 Reporter:  syn                                      |       Owner:  mario
     Type:  enhancement                              |      Status:  new  
 Priority:  not urgent at all                        |   Milestone:  4.6.0
Component:  extensions                               |     Version:  4.5.x
 Keywords:  spiffy-request-vars as-boolean plusplus  |  
-----------------------------------------------------+----------------------
 The attached patch enhances {{{as-boolean}}} in two ways: It adds
 {{{"true"}}} to the default list of {{{true-boolean-values}}} and it
 considers the mere presence of the parameter as {{{#t}}}, i.e. a query
 string like {{{"?foo"}}} would bind {{{foo}}} to {{{#t}}} when it is cast
 {{{as-boolean}}}. This is consistent with {{{uri-common}}}'s parsing
 behavior:

     (uri-query (uri-reference "?foo"))
     =>
     ((foo . #t))

-- 
Ticket URL: <https://bugs.call-cc.org/ticket/314>
Chicken Scheme <http://www.call-with-current-continuation.org/>
Chicken Scheme is a compiler for the Scheme programming language.

reply via email to

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