From mboxrd@z Thu Jan 1 00:00:00 1970 Path: main.gmane.org!not-for-mail From: Kenichi Handa Newsgroups: gmane.emacs.devel Subject: Re: request for a new function, say, `sequence' Date: Wed, 26 Mar 2003 21:18:47 +0900 (JST) Sender: emacs-devel-bounces+emacs-devel=quimby.gnus.org@gnu.org Message-ID: <200303261218.VAA09242@etlken.m17n.org> References: <200303230302.MAA04327@etlken.m17n.org> <200303241541.h2OFfbpa011227@rum.cs.yale.edu> <200303250015.JAA06592@etlken.m17n.org> <200303250050.JAA06631@etlken.m17n.org> <200303250057.h2P0vBj6016367@rum.cs.yale.edu> <200303250125.KAA06703@etlken.m17n.org> <32627.1048557446@theforce.Stanford.EDU> <200303250208.LAA06802@etlken.m17n.org> <1191.1048560083@theforce.Stanford.EDU> <200303250446.NAA06974@etlken.m17n.org> <4946.1048568708@theforce.Stanford.EDU> <200303250540.OAA07032@etlken.m17n.org> NNTP-Posting-Host: main.gmane.org Mime-Version: 1.0 (generated by SEMI 1.14.3 - "Ushinoya") Content-Type: text/plain; charset=US-ASCII X-Trace: main.gmane.org 1048681710 8451 80.91.224.249 (26 Mar 2003 12:28:30 GMT) X-Complaints-To: usenet@main.gmane.org NNTP-Posting-Date: Wed, 26 Mar 2003 12:28:30 +0000 (UTC) Cc: emacs-devel@gnu.org Original-X-From: emacs-devel-bounces+emacs-devel=quimby.gnus.org@gnu.org Wed Mar 26 13:28:28 2003 Return-path: Original-Received: from quimby.gnus.org ([80.91.224.244]) by main.gmane.org with esmtp (Exim 3.35 #1 (Debian)) id 18yA16-0002CB-00 for ; Wed, 26 Mar 2003 13:28:28 +0100 Original-Received: from monty-python.gnu.org ([199.232.76.173]) by quimby.gnus.org with esmtp (Exim 3.12 #1 (Debian)) id 18yA2U-00016H-00 for ; Wed, 26 Mar 2003 13:29:55 +0100 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 18y9z9-0003dp-04 for emacs-devel@quimby.gnus.org; Wed, 26 Mar 2003 07:26:27 -0500 Original-Received: from list by monty-python.gnu.org with tmda-scanned (Exim 4.10.13) id 18y9x2-0002Xa-00 for emacs-devel@gnu.org; Wed, 26 Mar 2003 07:24:16 -0500 Original-Received: from mail by monty-python.gnu.org with spam-scanned (Exim 4.10.13) id 18y9sb-0000uT-00 for emacs-devel@gnu.org; Wed, 26 Mar 2003 07:19:42 -0500 Original-Received: from tsukuba.m17n.org ([192.47.44.130]) by monty-python.gnu.org with esmtp (Exim 4.10.13) id 18y9rp-0000d5-00 for emacs-devel@gnu.org; Wed, 26 Mar 2003 07:18:53 -0500 Original-Received: from fs.m17n.org (fs.m17n.org [192.47.44.2])h2QCIm910731; Wed, 26 Mar 2003 21:18:48 +0900 (JST) (envelope-from handa@m17n.org) Original-Received: from etlken.m17n.org (etlken.m17n.org [192.47.44.125]) h2QCIlA00393; Wed, 26 Mar 2003 21:18:47 +0900 (JST) Original-Received: (from handa@localhost) by etlken.m17n.org (8.8.8+Sun/3.7W-2001040620) id VAA09242; Wed, 26 Mar 2003 21:18:47 +0900 (JST) Original-To: ttn@glug.org In-reply-to: (message from Thien-Thi Nguyen on 26 Mar 2003 03:48:23 -0500) User-Agent: SEMI/1.14.3 (Ushinoya) FLIM/1.14.2 (Yagi-Nishiguchi) APEL/10.2 Emacs/21.2.92 (sparc-sun-solaris2.6) MULE/5.0 (SAKAKI) X-BeenThere: emacs-devel@gnu.org X-Mailman-Version: 2.1b5 Precedence: list List-Id: Emacs development discussions. List-Help: List-Post: List-Subscribe: , List-Archive: List-Unsubscribe: , Errors-To: emacs-devel-bounces+emacs-devel=quimby.gnus.org@gnu.org Xref: main.gmane.org gmane.emacs.devel:12632 X-Report-Spam: http://spam.gmane.org/gmane.emacs.devel:12632 In article , Thien-Thi Nguyen writes: > "Edward O'Connor" writes: > I believe this is called `range' in Python, which perhaps lends > something (else) to that name over using `sequence'. > as far as name preferences, my 2c: `iota'. Richard suggested `sequential-list' which, I think, is also a good name. And as far as he suggested it, I think he admitted to install than function. So, I'll install it this weekend if there aren't any more strong objections. By the way, `iota' and Python's `range' are slightly different from what I want. I think we should avoid to have a function of the same name but slightly different from that of the other language unless there's a strong reason. range(10) => [0, 1, 2, 3, 4, 5, 6, 7, 8, 9] range(5, 10) => [5, 6, 7, 8, 9] range(0, 10, 3) => [0, 3, 6, 9] range(-10, -100, -30) => [-10, -40, -70] If range is used on simple numbers, this spec is not bad. But, I'd like to use it also for character codes and glyph codes as below: (sequential-list ?a ?z) => (?a ?b ... ?z) It seems strange to write (sequential-list ?a ?{) or (sequential-list ?a (1+ ?z)) to get (?a ?b ... ?z). --- Ken'ichi HANDA handa@m17n.org