From: Stefan Monnier <monnier@iro.umontreal.ca>
To: rms@gnu.org
Cc: tomo@cx4a.org, emacs-devel@gnu.org
Subject: Re: Should lexical-let use let in the situation lexical-binding is t ?
Date: Wed, 19 Sep 2012 15:01:20 -0400 [thread overview]
Message-ID: <jwvfw6d3kiy.fsf-monnier+emacs@gnu.org> (raw)
In-Reply-To: <E1TEL14-0004Bj-Qe@fencepost.gnu.org> (Richard Stallman's message of "Wed, 19 Sep 2012 10:12:38 -0400")
> This said, there can be good reasons to force a lexical binding, when
> you fear that the code might be run in a context where the variable
> might happen to be defvar'd.
> I am very skeptical of that claim. It seems to me that if your local
> variable is defvar'd by some other code, that is a kind of name
> collision and that other code should use a different name which isn't
> likely to collide with local variables.
Agreed, but you can't always control "other code".
This said, I don't know of any situation where lexical-let was used for
that reason.
Stefan
next prev parent reply other threads:[~2012-09-19 19:01 UTC|newest]
Thread overview: 13+ messages / expand[flat|nested] mbox.gz Atom feed top
2012-09-18 10:28 Should lexical-let use let in the situation lexical-binding is t ? Tomohiro Matsuyama
2012-09-18 12:44 ` Stefan Monnier
2012-09-18 22:42 ` Richard Stallman
2012-09-19 0:41 ` Stefan Monnier
2012-09-19 14:12 ` Richard Stallman
2012-09-19 19:01 ` Stefan Monnier [this message]
2012-09-19 22:06 ` Sam Steingold
2012-09-20 3:26 ` Stefan Monnier
2012-09-20 15:06 ` Sam Steingold
2012-09-19 1:20 ` Sam Steingold
2012-09-19 7:43 ` Nix
2012-09-21 18:18 ` Tomohiro Matsuyama
2012-09-21 21:18 ` 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=jwvfw6d3kiy.fsf-monnier+emacs@gnu.org \
--to=monnier@iro.umontreal.ca \
--cc=emacs-devel@gnu.org \
--cc=rms@gnu.org \
--cc=tomo@cx4a.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).