chicken-janitors
[Top][All Lists]
Advanced

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

[Chicken-janitors] Re: #356: #!key and #!rest only work when number of r


From: Chicken Trac
Subject: [Chicken-janitors] Re: #356: #!key and #!rest only work when number of rest arguments is even
Date: Wed, 25 Aug 2010 12:50:44 -0000

#356: #!key and #!rest only work when number of rest arguments is even
-----------------------------+----------------------------------------------
  Reporter:  ckeen           |       Owner:  felix                  
      Type:  defect          |      Status:  new                    
  Priority:  major           |   Milestone:                         
 Component:  core libraries  |     Version:  4.5.x                  
Resolution:                  |    Keywords:  DSSSL keyword arguments
-----------------------------+----------------------------------------------

Comment(by felix):

 Replying to [comment:3 ckeen]:
 > It does! So the programmer itself needs to make sure to never violate
 the rule?

 Well, yes. The question is, whether this is a real problem, what kind of
 performance-impact such a check has and whether it makes sense to accept
 any combination of keyword/argument pairs. What about

   ((lambda (#!rest r #!key f) ...) 1 f: f:)

 This is legal, since keywords are first-class. Is their any advantage in
 disallowing this? Can there be cases where someone actually wants this
 behaviour? I couldn't tell, really.

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