all messages for Emacs-related lists mirrored at yhetil.org
 help / color / mirror / code / Atom feed
From: Drew Adams <drew.adams@oracle.com>
To: Emanuel Berg <incal@dataswamp.org>,
	"help-gnu-emacs@gnu.org" <help-gnu-emacs@gnu.org>
Subject: Lions & tigers & variables - Oh my!   [was: Lisp error on function :documentation]
Date: Tue, 18 Oct 2022 15:37:31 +0000	[thread overview]
Message-ID: <SJ0PR10MB5488AA2F20F919FE8F17372FF3289@SJ0PR10MB5488.namprd10.prod.outlook.com> (raw)

> global variables can be virtually eliminated by using closures

_*ALL*_ variables can (really, not virtually) be
eliminated, with combinatory logic.  Magic.

That doesn't mean you'll likely find it preferable
to do all your programming without variables.  It
does mean that variables aren't at all necessary.

Variables are human bookkeeping labels/tags, to
help our feeble memories cope.  Useful sometimes,
a huge PITA other times - think assembler, C, etc.,
where pretty much every bit of program requires a
variable.

__


Yes, all of that is OT.  What's not OT is that for
Emacs users, _in particular_, special (global) vars
can be quite useful.

Precisely _because_ they can let you reach across
existing code without modifying it, as far as you
like, and change behavior.  And still have some
control over extent etc.  Dynamic binding is yet
another story of power being usable for good & bad.
Be careful how you use it; know why you use it.

RMS summarized the use cases 42 years ago - still
100% relevant today:

https://www.gnu.org/software/emacs/emacs-paper.html#SEC15


___

SKI etc.:

https://en.wikipedia.org/wiki/Combinatory_logic

42:

https://en.wikipedia.org/wiki/The_Hitchhiker%27s_Guide_to_the_Galaxy#42,_or_The_Answer_to_the_Ultimate_Question_of_Life,_The_Universe,_and_Everything

https://en.wikipedia.org/wiki/Jackie_Robinson




             reply	other threads:[~2022-10-18 15:37 UTC|newest]

Thread overview: 9+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2022-10-18 15:37 Drew Adams [this message]
2022-10-18 23:25 ` Lions & tigers & variables - Oh my! [was: Lisp error on function :documentation] Emanuel Berg
2022-10-19 14:09   ` [External] : " Drew Adams
2022-10-19 20:20     ` Emanuel Berg
2022-10-20  8:48       ` tomas
2022-10-21  3:37         ` Emanuel Berg
2022-10-21  8:40         ` Emanuel Berg
2022-10-19  5:16 ` Emanuel Berg
2022-10-19  5:27 ` Emanuel Berg

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=SJ0PR10MB5488AA2F20F919FE8F17372FF3289@SJ0PR10MB5488.namprd10.prod.outlook.com \
    --to=drew.adams@oracle.com \
    --cc=help-gnu-emacs@gnu.org \
    --cc=incal@dataswamp.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 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.