chicken-janitors
[Top][All Lists]
Advanced

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

[Chicken-janitors] #1276: alist-lib alist-update!/default not useful for


From: Chicken Trac
Subject: [Chicken-janitors] #1276: alist-lib alist-update!/default not useful for adding keys
Date: Thu, 07 Apr 2016 22:07:40 -0000

#1276: alist-lib alist-update!/default not useful for adding keys
---------------------+---------------------
 Reporter:  retroj   |      Owner:
     Type:  defect   |     Status:  new
 Priority:  major    |  Milestone:  someday
Component:  unknown  |    Version:  4.10.x
 Keywords:           |
---------------------+---------------------
 I noticed that alist-update! and alist-update!/default in alist-lib have
 call signatures suggestive of being able to add keys to an alist (not just
 updating existing keys) because they accept a default OLD value if the
 given key is not found.  However, both procedures have an unspecified
 return value, so it's not clear what the intent was for the case of adding
 new entries to the alist.  If they don't return an updated reference to
 the head of the list, there is no way to add new entries, and it doesn't
 make sense to have a DEFAULT in the call signature.

--
Ticket URL: <http://bugs.call-cc.org/ticket/1276>
CHICKEN Scheme <http://www.call-cc.org/>
CHICKEN Scheme is a compiler for the Scheme programming language.

reply via email to

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