unofficial mirror of emacs-devel@gnu.org 
 help / color / mirror / code / Atom feed
From: Dmitry Antipov <dmantipov@yandex.ru>
To: Stefan Monnier <monnier@IRO.UMontreal.CA>
Cc: David Kastrup <dak@gnu.org>, emacs-devel@gnu.org
Subject: Re: (n)reverse vs. length
Date: Thu, 15 May 2014 08:29:14 +0400	[thread overview]
Message-ID: <5374429A.3090704@yandex.ru> (raw)
In-Reply-To: <jwv1tvvrf0z.fsf-monnier+emacs@gnu.org>

On 05/15/2014 05:45 AM, Stefan Monnier wrote:

>>> strings should be immutable
>> Doesn't aset work on strings?
>
> Yes, I said "should be" not "are".

Hm, what about an existing code which relies on aset'table strings? Questions
like http://lists.gnu.org/archive/html/emacs-devel/2014-04/msg00378.html shows
that treating string as an array of characters is a common practice (which is
"natural" for the people with C background). And, in case of large strings,
in-place reverse may save a lot of memory.

Dmitry




  reply	other threads:[~2014-05-15  4:29 UTC|newest]

Thread overview: 7+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2014-05-14 14:19 (n)reverse vs. length Dmitry Antipov
2014-05-14 19:10 ` Stefan Monnier
2014-05-14 20:12   ` David Kastrup
2014-05-15  1:45     ` Stefan Monnier
2014-05-15  4:29       ` Dmitry Antipov [this message]
2014-05-15  5:49         ` David Kastrup
2014-05-15 12:38         ` Stefan Monnier

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=5374429A.3090704@yandex.ru \
    --to=dmantipov@yandex.ru \
    --cc=dak@gnu.org \
    --cc=emacs-devel@gnu.org \
    --cc=monnier@IRO.UMontreal.CA \
    /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).