[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Chicken-janitors] [Chicken-bugs] #331: Unit utils: Inconsistent behavio
From: |
Chicken Scheme |
Subject: |
[Chicken-janitors] [Chicken-bugs] #331: Unit utils: Inconsistent behavior of procedures shift! & unshift! |
Date: |
Sun, 30 Sep 2007 07:09:53 -0000 |
#331: Unit utils: Inconsistent behavior of procedures shift! & unshift!
-----------------------------------------------+----------------------------
Reporter: Jon Strait <address@hidden> | Type: defect
Status: new | Priority: minor
Component: core libraries | Version: 2.7
Keywords: |
-----------------------------------------------+----------------------------
Currently shift! on a list with one element throws an error about setting
the list to the empty list and it not being a pair. However, shift! on an
empty list returns #f (for the default value). If shifting the empty list
doesn't throw an error, then shifting a one element list shouldn't either.
Regarding this, I don't see what's conceptually wrong with shifting to the
empty list or in unshifting the empty list to make a one element list,
although this may not be standard? However, the first issue seems really
inconsistent.
--
Ticket URL: <http://trac.callcc.org/ticket/331>
Chicken Scheme <http://www.call-with-current-continuation.org/>
The CHICKEN Scheme-to-C compiler
[Prev in Thread] |
Current Thread |
[Next in Thread] |
- [Chicken-janitors] [Chicken-bugs] #331: Unit utils: Inconsistent behavior of procedures shift! & unshift!,
Chicken Scheme <=