unofficial mirror of emacs-devel@gnu.org 
 help / color / mirror / code / Atom feed
From: Jean Louis <bugs@gnu.support>
To: Tassilo Horn <tsdh@gnu.org>
Cc: emacs-devel@gnu.org
Subject: Re: master b72f885: Make dlet work like let, not let*
Date: Tue, 21 Sep 2021 12:31:09 +0300	[thread overview]
Message-ID: <YUmmXV8ekxHRM+/n@protected.localdomain> (raw)
In-Reply-To: <874kaetip8.fsf@gnu.org>

* Tassilo Horn <tsdh@gnu.org> [2021-09-21 11:52]:
> > As a side note, the advise for variables to be first `defvar-ed' if
> > they are to be used in `let*' is not practical. It increases work, it
> > does not lessen the work.
> 
> The advice is to defvar variables which should be dynamically bound, and
> to have few of them because dynamic scope is very hard to debug.  So the
> work saved at coding time might be invested when debugging
> later. ;-)

I understand the approach. On my side I look at it practically. I had
no problems with the implementation.

> > You know when you start creating `let*' variables you don't want to
> > think much, just do it. Now I am supposed to make 50-100 `defvar-ed'
> > variables.
> 
> Well, it seems not to match your design.  If I would try to build a
> templating system I'd try to have just one defvar-ed wcr::variables and
> access that when replacing the template placeholders rather than having
> to dlet each and every thing inside vcr::variables.

I understand idea, though I think with uncertainty, it would bring the
unwanted limitations.

With certainty I know that such change would give more problems then
it is worth, not less.

Once programmed it worked for months, and I have not touched it until
today. 

The RCD Template system it will interpolate any passed variables in
hash first, if any is there, otherwise global variables, including any
Emacs Lisp code. It does not expect by rule variables to be passed.



Jean

Take action in Free Software Foundation campaigns:
https://www.fsf.org/campaigns

In support of Richard M. Stallman
https://stallmansupport.org/



      reply	other threads:[~2021-09-21  9:31 UTC|newest]

Thread overview: 25+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2021-08-01 16:10 master b72f885: Make dlet work like let, not let* Eli Zaretskii
2021-08-03 13:03 ` Mattias Engdegård
2021-08-03 13:33   ` Eli Zaretskii
2021-08-03 15:21     ` Mattias Engdegård
2021-08-03 15:58       ` Eli Zaretskii
2021-08-03 17:19         ` Stefan Monnier
2021-08-03 17:50           ` Eli Zaretskii
2021-08-03 18:50             ` Stefan Monnier
2021-08-04 11:27               ` Eli Zaretskii
2021-08-04 11:35                 ` Lars Ingebrigtsen
2021-08-04 11:46                   ` Mattias Engdegård
2021-08-04 12:16                     ` Eli Zaretskii
2021-08-04 12:48                       ` Mattias Engdegård
2021-08-04 12:15                   ` Eli Zaretskii
2021-08-04  3:09             ` Michael Heerdegen
2021-08-04 11:40               ` Eli Zaretskii
2021-09-20 17:08                 ` Jean Louis
2021-09-20 17:02       ` Jean Louis
2021-09-20 16:56 ` Jean Louis
2021-09-20 19:16   ` Tassilo Horn
2021-09-21  4:19     ` Jean Louis
2021-09-21  6:31       ` Tassilo Horn
2021-09-21  7:17         ` Jean Louis
2021-09-21  7:50           ` Tassilo Horn
2021-09-21  9:31             ` Jean Louis [this message]

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=YUmmXV8ekxHRM+/n@protected.localdomain \
    --to=bugs@gnu.support \
    --cc=emacs-devel@gnu.org \
    --cc=tsdh@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).