unofficial mirror of emacs-devel@gnu.org 
 help / color / mirror / code / Atom feed
From: Miles Bader <miles@gnu.org>
Cc: Ken Raeburn <raeburn@raeburn.org>, rms@gnu.org, emacs-devel@gnu.org
Subject: Re: abstracting Lisp strings - macro name convention?
Date: 03 Jul 2002 22:16:18 +0900	[thread overview]
Message-ID: <87bs9pj6jh.fsf@tc-1-100.kawasaki.gol.ne.jp> (raw)
In-Reply-To: <5xfzz0c3dz.fsf@kfs2.cua.dk>

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

  reply	other threads:[~2002-07-03 13:16 UTC|newest]

Thread overview: 8+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2002-06-30 23:13 abstracting Lisp strings - macro name convention? Ken Raeburn
2002-07-02  7:37 ` Richard Stallman
2002-07-03  2:09   ` Ken Raeburn
2002-07-03 13:13     ` Stefan Monnier
2002-07-03 14:06     ` Kim F. Storm
2002-07-03 13:16       ` Miles Bader [this message]
2002-07-03 13:17       ` Henrik Enberg
2002-07-04  7:07     ` Richard Stallman

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

  List information: https://www.gnu.org/software/emacs/

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=87bs9pj6jh.fsf@tc-1-100.kawasaki.gol.ne.jp \
    --to=miles@gnu.org \
    --cc=emacs-devel@gnu.org \
    --cc=raeburn@raeburn.org \
    --cc=rms@gnu.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
Code repositories for project(s) associated with this public inbox

	https://git.savannah.gnu.org/cgit/emacs.git

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).