chicken-janitors
[Top][All Lists]
Advanced

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

[Chicken-janitors] #385: Better error reporting for srfi-26


From: Chicken Trac
Subject: [Chicken-janitors] #385: Better error reporting for srfi-26
Date: Mon, 13 Sep 2010 13:57:42 -0000

#385: Better error reporting for srfi-26
--------------------------------+-------------------------------------------
 Reporter:  sjamaan             |       Owner:  felix
     Type:  defect              |      Status:  new  
 Priority:  minor               |   Milestone:  4.7.0
Component:  core libraries      |     Version:  4.6.x
 Keywords:  srfi-26, cut, cute  |  
--------------------------------+-------------------------------------------
 {{{((cut + <...> 1) 1)}}} is allowed and returns 1, contrary to
 expectations.

 {{{(cut)}}} and {{{(cute)}}} both give an internal error; "Error: (car)
 during expansion of (cute ...) - bad argument type: ()". This should be a
 more contextually relevant error.

 Here's two patches; one allows suffix patterns, the variables for which
 simply get consumed placewise from the right (similar to #379). Normal
 variables get consumed from the left and if anything's left in between,
 that's used for the placeholder. The above example would return 2.

 The other patch simply checks for the presence of extra args and throws an
 error if there are any.

 Both patches add an error message for when you do {{{(cut)}}}.

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