unofficial mirror of help-gnu-emacs@gnu.org
 help / color / mirror / 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: Setting up abbrev
Date: Mon, 1 Aug 2022 14:56:49 +0000	[thread overview]
Message-ID: <SJ0PR10MB5488F2A5DFB04367745D7EE6F39A9@SJ0PR10MB5488.namprd10.prod.outlook.com> (raw)
In-Reply-To: <87tu6wchw5.fsf@dataswamp.org>

> Anyhow, the so-called dotted pair notation tells us that the
> universal data structure actually isn't a list, but a pair!

Yes.

> Only a pair is a list as well ...

Yes.  But a list isn't a pair. ;-)

> In practice - here, someone maybe disagrees? - but in my
> experience I don't see why that should be used ...
> 
> And I don't know why it was ever essential to the point it
> even got to symbolize Lisp on a couple of occasions?
> 
> Maybe that box diagram with arrows to make up a cons cell
> link-list-fragment just looked neat and interesting ...

1. Key-value pairs are quite common - far beyond Lisp.

2. A cons is a key-value pair.

But the constructor function `cons' is more/other than
that.  As a key-value pair, (cons a (cons b c)) has key
`a' and value key-value pair (b . c).  Not your typical
key-value pair use case - not typically thought of that
way, at least.

3. A fundamental structure-building thingie in our
universe is the unary constructor, `s' (successor
function).  Together with the nullary constructor, `0',
it gives you the Natural numbers - pretty foundational.

The next structure-building thingie is the binary
constructor, `cons'.  Together with nullary constructor
`nil' it gives you key-value pairs, or if you prefer,
essentially all structures/constructions - sculptures
of all sorts.

Syntax-tree and function-application are fundamental
structures for programs and (other) data.  In Lisp,
both are directly, unabashedly, handled as conses.

If you want lists then you have conses.  If you want
trees then you have conses.

As for the (a . b) _notation_: Why not?  JSON uses
`:'.  Prolog uses `|'.  Doesn't matter much what
notation you choose.  OOPs often use a dot notation
for method application.  Six of one; half a dozen of
another...



  reply	other threads:[~2022-08-01 14:56 UTC|newest]

Thread overview: 25+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2022-07-31 12:23 Setting up abbrev wilnerthomas--- via Users list for the GNU Emacs text editor
2022-07-31 13:08 ` Jean Louis
2022-08-01  3:06   ` Emanuel Berg
2022-08-01  6:04     ` Jean Louis
2022-08-01  7:42       ` Emanuel Berg
     [not found] ` <YuZ+ucBrwA9vOR/F@protected.localdomain-N8JMuQk----2>
2022-07-31 15:35   ` wilnerthomas--- via Users list for the GNU Emacs text editor
2022-07-31 16:40     ` [External] : " Drew Adams
2022-08-01  6:21       ` Jean Louis
2022-08-01  6:05     ` Jean Louis
2022-07-31 20:02 ` kf
2022-08-01  3:03 ` Emanuel Berg
2022-08-01 10:41   ` uzibalqa
2022-08-01 11:39     ` Emanuel Berg
2022-08-01 14:56       ` Drew Adams [this message]
2022-08-01 15:14         ` [External] : " Emanuel Berg
2022-08-01 16:36           ` Drew Adams
2022-08-01 16:57             ` wilnerthomas--- via Users list for the GNU Emacs text editor
2022-08-01 18:36             ` Emanuel Berg
2022-08-01 19:20               ` Drew Adams
2022-08-01 16:56       ` tomas
2022-08-01 18:40         ` Emanuel Berg
2022-08-01 20:37           ` tomas
2022-08-01 11:33   ` carlmarcos--- via Users list for the GNU Emacs text editor
2022-08-01 11:42     ` Emanuel Berg
2022-08-01 12:54       ` carlmarcos--- via Users list for the GNU Emacs text editor

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=SJ0PR10MB5488F2A5DFB04367745D7EE6F39A9@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.
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).