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: RE: [External] : Re: ;;;###autoload declarations
Date: Mon, 26 Jun 2023 13:27:29 +0000	[thread overview]
Message-ID: <SJ0PR10MB54882581DFB320C07F2466CEF326A@SJ0PR10MB5488.namprd10.prod.outlook.com> (raw)
In-Reply-To: <87sfaivxvk.fsf@dataswamp.org>

> (info "(elisp) Autoload")
> 
> However, what I can see it fails to address why this is at all
> desirable to do and, assuming it is, in what cases more
> precisely it is useful.

If you never use anything from some library
then it isn't loaded.  That's the idea: load
code only if and when you need it.

Autoloaded commands (typically) and other
things (not so typically) are available to
the Help system, so you can see what they
do etc., even though their definitions
haven't been loaded.

If/when you invoke an autoloaded command,
_then_ the file defining it is loaded
(which often defines other commands etc.).
___

Another example of late binding - one of the
most important software ideas and practices.

Lazy evaluation (think purely functional
languages) is a prime example of late binding.
___

Beyond normal-order (i.e., outermost-first)
evaluation, which is used for lazy languages,
there's a more stringent on-need evaluation,
which is defined for some rewrite systems.
It needs costly analysis of code to determine
exactly what really needs to be evaluated when.



  reply	other threads:[~2023-06-26 13:27 UTC|newest]

Thread overview: 10+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2023-06-23 11:09 ;;;###autoload declarations uzibalqa
2023-06-23 16:08 ` Michael Heerdegen
2023-06-23 16:42   ` uzibalqa
2023-06-24  2:02     ` Michael Heerdegen
2023-06-24 11:27       ` uzibalqa
2023-06-25  1:55         ` Michael Heerdegen
2023-06-23 18:26   ` Emanuel Berg
2023-06-26 13:27     ` Drew Adams [this message]
2023-06-30 15:35       ` [External] : " Emanuel Berg
2023-07-03 15:59         ` Drew Adams

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=SJ0PR10MB54882581DFB320C07F2466CEF326A@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.