all messages for Emacs-related lists mirrored at yhetil.org
 help / color / mirror / code / Atom feed
From: Richard Stallman <rms@gnu.org>
To: Eli Zaretskii <eliz@gnu.org>
Cc: noah@splode.com, emacs-devel@gnu.org
Subject: Re: obnoxious byte-compiler warning from using lsh
Date: Sun, 10 Sep 2023 20:41:16 -0400	[thread overview]
Message-ID: <E1qfUzM-0006kf-VC@fencepost.gnu.org> (raw)
In-Reply-To: <8334zoyj9h.fsf@gnu.org> (message from Eli Zaretskii on Fri, 08 Sep 2023 14:52:26 +0300)

[[[ To any NSA and FBI agents reading my email: please consider    ]]]
[[[ whether defending the US Constitution against all enemies,     ]]]
[[[ foreign or domestic, requires you to follow Snowden's example. ]]]

  > We are aware that ash and lsh are not the same, but we still want to
  > urge people to use ash, since in our experience most uses of lsh are
  > mistakes.

That may be true, but I find the existing doc string confusing.  It
says

    This function is provided for compatibility.  In new code, use ‘ash’
    instead.

To me, that means that `lsh' and `ash' are equivalent and you should
simply replace the former with the latter.  Of course, they are not
equivalent, and I don't think that's what the person who wrote that
text, meant, but I can't see what it is intended to mean.  Simply
using `ash' instead of `lsh' is not correct.

How about this?

    Most uses of this function turn out to be mistakes.
    Before you use it, we urge you to think very carefully
    about whether COUNT will ever be negative, and if so,
    what results your program needs to get in that case.  If you can
    do the job with code that uses `ash' instead, we recommend that.



-- 
Dr Richard Stallman (https://stallman.org)
Chief GNUisance of the GNU Project (https://gnu.org)
Founder, Free Software Foundation (https://fsf.org)
Internet Hall-of-Famer (https://internethalloffame.org)





  reply	other threads:[~2023-09-11  0:41 UTC|newest]

Thread overview: 4+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2023-09-08 10:26 obnoxious byte-compiler warning from using lsh Noah Friedman
2023-09-08 11:52 ` Eli Zaretskii
2023-09-11  0:41   ` Richard Stallman [this message]
2023-09-15  7:18     ` Eli Zaretskii

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

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

  git send-email \
    --in-reply-to=E1qfUzM-0006kf-VC@fencepost.gnu.org \
    --to=rms@gnu.org \
    --cc=eliz@gnu.org \
    --cc=emacs-devel@gnu.org \
    --cc=noah@splode.com \
    /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 external index

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

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.