From: Stefan Monnier <monnier@iro.umontreal.ca>
To: Jonas Bernoulli <jonas@bernoul.li>
Cc: emacs-devel@gnu.org
Subject: Re: [elpa] externals/transient 667ce2b287 18/23: Use transient-default-value in transient-init-value(suffix)
Date: Fri, 27 Dec 2024 13:06:50 -0500 [thread overview]
Message-ID: <jwv34i96mix.fsf-monnier+emacs@gnu.org> (raw)
In-Reply-To: <87wmfmikc0.fsf@bernoul.li> (Jonas Bernoulli's message of "Thu, 26 Dec 2024 15:34:55 +0100")
> The reason I am using Eieio's "this is not bound", is that I am doing an
> Eieio thing here. It's not a "not bound" slot but the "not bound"
> return value of a generic function, which isn't the same thing, but
> pretty damn close.
🙂
> Sure I can invent a new symbol just for this one case, but it would be
> (IMO unnecessary) noise and the only reasons I would be doing it is to
> make you happy and to avoid having a conversation about it.
Sorry about this conversation. I'm not bothered by your use of
`eieio--unbound`, to be honest, I was just curious.
[ If I were you, I think I'd just use something like `:unbound` or
`:transient--unbound` because it's literally less code than what you
currently have and it would save me from having to worry about the
annoying guy breaking compatibility again. ]
>> IOW, is there a good reason to break the abstraction here?
> I am not sure what "the abstraction" and "here" refer to exactly.
One of the abstractions is just that the `eieio--` prefix implies it's an
internal entity to EIEIO so shouldn't be used from outside of EIEIO's
own code.
The other is that `eieio--unbound` is a value that ideally noone should
ever see, just like `Qunbound` in Emacs's C code. Every time you use it
you increase the risk that someone ends up storing it inside an
EIEIO object.
[ Now that I think about it... I'm no fan of EIEIO objects, especially
that notion of a slot being unbound, so maybe I should encourage use
of `eieio--unbound` so as to maximize the chance of mayhem. 🙂 ]
Stefan
next prev parent reply other threads:[~2024-12-27 18:06 UTC|newest]
Thread overview: 5+ messages / expand[flat|nested] mbox.gz Atom feed top
[not found] <173487507772.3820862.14263838078882905942@vcs3.savannah.gnu.org>
[not found] ` <20241222134440.C5563C5C27C@vcs3.savannah.gnu.org>
2024-12-25 14:14 ` [elpa] externals/transient 667ce2b287 18/23: Use transient-default-value in transient-init-value(suffix) Stefan Monnier
2024-12-26 14:34 ` Jonas Bernoulli
2024-12-27 18:06 ` Stefan Monnier [this message]
2024-12-27 19:09 ` Jonas Bernoulli
2024-12-28 3:15 ` 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=jwv34i96mix.fsf-monnier+emacs@gnu.org \
--to=monnier@iro.umontreal.ca \
--cc=emacs-devel@gnu.org \
--cc=jonas@bernoul.li \
/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).