From mboxrd@z Thu Jan 1 00:00:00 1970 Path: main.gmane.org!not-for-mail From: Miles Bader Newsgroups: gmane.emacs.devel Subject: Re: abstracting Lisp strings - macro name convention? Date: 03 Jul 2002 22:16:18 +0900 Sender: emacs-devel-admin@gnu.org Message-ID: <87bs9pj6jh.fsf@tc-1-100.kawasaki.gol.ne.jp> References: <200207020737.g627bR501067@aztec.santafe.edu> <5xfzz0c3dz.fsf@kfs2.cua.dk> Reply-To: Miles Bader NNTP-Posting-Host: localhost.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Trace: main.gmane.org 1025702449 22214 127.0.0.1 (3 Jul 2002 13:20:49 GMT) X-Complaints-To: usenet@main.gmane.org NNTP-Posting-Date: Wed, 3 Jul 2002 13:20:49 +0000 (UTC) Cc: Ken Raeburn , rms@gnu.org, emacs-devel@gnu.org Return-path: Original-Received: from quimby.gnus.org ([80.91.224.244]) by main.gmane.org with esmtp (Exim 3.33 #1 (Debian)) id 17Pk3s-0005mB-00 for ; Wed, 03 Jul 2002 15:20:48 +0200 Original-Received: from fencepost.gnu.org ([199.232.76.164]) by quimby.gnus.org with esmtp (Exim 3.12 #1 (Debian)) id 17Pk9P-0001dW-00 for ; Wed, 03 Jul 2002 15:26:31 +0200 Original-Received: from localhost ([127.0.0.1] helo=fencepost.gnu.org) by fencepost.gnu.org with esmtp (Exim 3.34 #1 (Debian)) id 17Pk48-00046t-00; Wed, 03 Jul 2002 09:21:04 -0400 Original-Received: from smtp02.fields.gol.com ([203.216.5.132]) by fencepost.gnu.org with smtp (Exim 3.34 #1 (Debian)) id 17Pk1G-0003qU-00; Wed, 03 Jul 2002 09:18:06 -0400 Original-Received: from tc-2-162.kawasaki.gol.ne.jp ([203.216.25.162] helo=tc-1-100.kawasaki.gol.ne.jp) by smtp02.fields.gol.com with esmtp (Magnetic Fields) id 17Pk17-0003Wo-00; Wed, 03 Jul 2002 22:17:58 +0900 Original-Received: by tc-1-100.kawasaki.gol.ne.jp (Postfix, from userid 1000) id 925153075; Wed, 3 Jul 2002 22:16:18 +0900 (JST) Original-To: storm@cua.dk (Kim F. Storm) System-Type: i686-pc-linux-gnu In-Reply-To: <5xfzz0c3dz.fsf@kfs2.cua.dk> Original-Lines: 19 X-Abuse-Complaints: abuse@gol.com Errors-To: emacs-devel-admin@gnu.org X-BeenThere: emacs-devel@gnu.org X-Mailman-Version: 2.0.11 Precedence: bulk List-Help: List-Post: List-Subscribe: , List-Id: Emacs development discussions. List-Unsubscribe: , List-Archive: Xref: main.gmane.org gmane.emacs.devel:5403 X-Report-Spam: http://spam.gmane.org/gmane.emacs.devel:5403 storm@cua.dk (Kim F. Storm) writes: > > STRING_REF(obj,index) > > STRING_SET(obj,index,newbyteval) > > Wouldn't it be more consistent to name these > > STRING_AREF(obj,index) > STRING_ASET(obj,index,newbyteval) Why? `aref' is a noun-verb pair meaning `array reference'; since strings are generally thought of as _being_ arrays, not _containing_ arrays,`string array reference' sounds redundant. A traditional name in lisp, btw, is `sref', but it's not used that much, so I think it makes sense to use a longer name here. -Miles -- Freedom's just another word, for nothing left to lose --Janis Joplin