From mboxrd@z Thu Jan 1 00:00:00 1970 Path: main.gmane.org!not-for-mail From: Rob Browning Newsgroups: gmane.lisp.guile.devel Subject: Re: srfi-1 take and drop Date: Mon, 05 May 2003 20:30:09 -0500 Sender: guile-devel-bounces+guile-devel=m.gmane.org@gnu.org Message-ID: <8765oozwta.fsf@raven.i.defaultvalue.org> References: <87y91lt29u.fsf@zip.com.au> NNTP-Posting-Host: main.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Trace: main.gmane.org 1052184627 29988 80.91.224.249 (6 May 2003 01:30:27 GMT) X-Complaints-To: usenet@main.gmane.org NNTP-Posting-Date: Tue, 6 May 2003 01:30:27 +0000 (UTC) Cc: guile-devel@gnu.org Original-X-From: guile-devel-bounces+guile-devel=m.gmane.org@gnu.org Tue May 06 03:30:19 2003 Return-path: Original-Received: from monty-python.gnu.org ([199.232.76.173]) by main.gmane.org with esmtp (Exim 3.35 #1 (Debian)) id 19CrHe-0007n3-00 for ; Tue, 06 May 2003 03:30:19 +0200 Original-Received: from localhost ([127.0.0.1] helo=monty-python.gnu.org) by monty-python.gnu.org with esmtp (Exim 4.10.13) id 19CrI9-0002RI-05 for guile-devel@m.gmane.org; Mon, 05 May 2003 21:30:49 -0400 Original-Received: from list by monty-python.gnu.org with tmda-scanned (Exim 4.10.13) id 19CrHm-0002PV-00 for guile-devel@gnu.org; Mon, 05 May 2003 21:30:26 -0400 Original-Received: from mail by monty-python.gnu.org with spam-scanned (Exim 4.10.13) id 19CrHl-0002P3-00 for guile-devel@gnu.org; Mon, 05 May 2003 21:30:25 -0400 Original-Received: from dsl093-098-016.wdc1.dsl.speakeasy.net ([66.93.98.16] helo=defaultvalue.org) by monty-python.gnu.org with esmtp (Exim 4.10.13) id 19CrHW-00027Y-00 for guile-devel@gnu.org; Mon, 05 May 2003 21:30:10 -0400 Original-Received: from raven.i.defaultvalue.org (raven.i.defaultvalue.org [192.168.1.7]) by defaultvalue.org (Postfix) with ESMTP id 20A27FD6; Mon, 5 May 2003 20:30:10 -0500 (CDT) Original-Received: by raven.i.defaultvalue.org (Postfix, from userid 1000) id 120342150F7; Mon, 5 May 2003 20:30:10 -0500 (CDT) Original-To: Kevin Ryde In-Reply-To: <87y91lt29u.fsf@zip.com.au> (Kevin Ryde's message of "Tue, 06 May 2003 09:14:05 +1000") User-Agent: Gnus/5.1001 (Gnus v5.10.1) Emacs/21.3 (gnu/linux) X-BeenThere: guile-devel@gnu.org X-Mailman-Version: 2.1b5 Precedence: list List-Id: Developers list for Guile, the GNU extensibility library List-Help: List-Post: List-Subscribe: , List-Archive: List-Unsubscribe: , Errors-To: guile-devel-bounces+guile-devel=m.gmane.org@gnu.org Xref: main.gmane.org gmane.lisp.guile.devel:2276 X-Report-Spam: http://spam.gmane.org/gmane.lisp.guile.devel:2276 Kevin Ryde writes: > The only difference I could spot in the current implementations was > list-head and list-tail throw an exception for negative n, where take > and drop code quietly treat that as 0. srfi-1 doesn't say anything > about negatives as far as I can tell, so presumably there's a free > choice. I was planning on doing a little hacking on srfi-1.scm too, and I'd thought about checking and throwing an error on negative n for various functions, but I hadn't decided. One thing I was planning to do was alter null-list? to be less careful. The spec doesn't require it, and what we do now is more expensive. -- Rob Browning rlb @defaultvalue.org, @linuxdevel.com, and @debian.org Previously @cs.utexas.edu GPG starting 2002-11-03 = 14DD 432F AE39 534D B592 F9A0 25C8 D377 8C7E 73A4 _______________________________________________ Guile-devel mailing list Guile-devel@gnu.org http://mail.gnu.org/mailman/listinfo/guile-devel