chicken-janitors
[Top][All Lists]
Advanced

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

[Chicken-janitors] #1085: srfi-1's list= and lset procedures don't check


From: Chicken Trac
Subject: [Chicken-janitors] #1085: srfi-1's list= and lset procedures don't check their first arguments
Date: Thu, 02 Jan 2014 19:53:40 -0000

#1085: srfi-1's list= and lset procedures don't check their first arguments
-------------------------------+--------------------------------------------
 Reporter:  evhan              |       Owner:         
     Type:  defect             |      Status:  new    
 Priority:  not urgent at all  |   Milestone:  someday
Component:  core libraries     |     Version:  4.8.x  
 Keywords:  srfi-1             |  
-------------------------------+--------------------------------------------
 {{{list=}}}, {{{lset=}}}, {{{lset-union}}} and friends each expect a
 comparator as the first argument, but nothing bad happens if you don't
 give one (except some weird results).

 {{{
 (list= '(1) '(2)) ; => #t
 (lset= '(1) '(2)) ; => #t
 (lset-union '(1) '(2)) ; => (2)
 (list= '(1) '(2) '(3)) ; => triggers an error (call of non-procedure: (1))
 }}}

 It seems like these should check the types of their first arguments (which
 might be as simple as replacing the commented-out {{{check-arg}}} guards
 from the srfi-1 reference with {{{##sys#check-closure}}}). On the other
 hand, some other Schemes (Chibi, Gauche, Racket) do the same thing as we
 do, currently.

-- 
Ticket URL: <http://bugs.call-cc.org/ticket/1085>
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]