unofficial mirror of emacs-devel@gnu.org 
 help / color / mirror / code / Atom feed
From: Stefan Monnier <monnier@iro.umontreal.ca>
To: Andrea Corallo <acorallo@gnu.org>
Cc: emacs-devel@gnu.org
Subject: Re: feature/type-hierarchy 8a63e50036f 1/5: * Define 'cl--type-hierarchy' and compute 'cl--typeof-types' from it
Date: Sun, 03 Mar 2024 15:41:01 -0500	[thread overview]
Message-ID: <jwvzfvfawbc.fsf-monnier+emacs@gnu.org> (raw)
In-Reply-To: <yp1il23yxj3.fsf@fencepost.gnu.org> (Andrea Corallo's message of "Sun, 03 Mar 2024 13:34:40 -0500")

> Mmmh for class and structure I thought because we have 'class-p' and
> 'cl-struct-p' we had the corresponding types (from which the user
> defined ones are derived).  IIRC I've seen also in the past we have the
> class type.

We do have types for them, but they're not built-in.
There's `cl--class`, `cl-structure-object`, `cl-structure-class`, and
some others I can't remember for EIEIO.

> Anyway for this and the keyword thing I certainly don't have any strong
> feeling/opinion, I've asked feedback on this hierarchy here since about
> 4 months ago really because it's tricky.  But I think it's really a good
> exercise we (finally) spell it out and document it.

I think if we want to do it right, we have to introduce a new `type-of`
function which can return `boolean` for `t`, and various other backward
incompatible changes, and make sure the DAG is "complete" (e.g. add
`keyword-sym-pos`, `list-and-function`, `subr-function`, and
`special-form`).

But there hasn't been much concrete need for it, so we may as well keep
it for later if/when we actually need something like that.


        Stefan




  reply	other threads:[~2024-03-03 20:41 UTC|newest]

Thread overview: 19+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
     [not found] <170801660982.26727.13226947668211497607@vcs2.savannah.gnu.org>
     [not found] ` <20240215170330.82819C0F009@vcs2.savannah.gnu.org>
2024-03-01 16:49   ` feature/type-hierarchy 8a63e50036f 1/5: * Define 'cl--type-hierarchy' and compute 'cl--typeof-types' from it Stefan Monnier
2024-03-01 18:12     ` Andrea Corallo
2024-03-01 18:59       ` Stefan Monnier
2024-03-03  8:51         ` Andrea Corallo
2024-03-03 14:21           ` Stefan Monnier
2024-03-03 18:34             ` Andrea Corallo
2024-03-03 20:41               ` Stefan Monnier [this message]
2024-03-04  9:16                 ` Andrea Corallo
2024-03-04 15:37                   ` Stefan Monnier
2024-03-04 16:12                     ` Andrea Corallo
2024-03-04 16:35                       ` Stefan Monnier
2024-03-03 16:56     ` Andrea Corallo
2024-03-03 17:31       ` Stefan Monnier
2024-03-03 18:05         ` Andrea Corallo
2024-03-03 18:20           ` Stefan Monnier
2024-03-03 18:37             ` Andrea Corallo
2024-03-03 20:42               ` Stefan Monnier
2024-03-04  9:24                 ` Andrea Corallo
2024-03-04 15:51                   ` 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=jwvzfvfawbc.fsf-monnier+emacs@gnu.org \
    --to=monnier@iro.umontreal.ca \
    --cc=acorallo@gnu.org \
    --cc=emacs-devel@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).