[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: Mutating existing persistent data
From: |
Joost Kremers |
Subject: |
Re: Mutating existing persistent data |
Date: |
Tue, 07 Dec 2021 23:13:58 +0100 |
User-agent: |
mu4e 1.6.9; emacs 28.0.90 |
On Tue, Dec 07 2021, Joost Kremers wrote:
> On Tue, Dec 07 2021, Lars Ingebrigtsen wrote:
>> Uhm... anybody else got any ideas for a word for a variable that has a
>> value that survives an Emacs shutdown?
>
> persist-defvar?
>
> Oh, wait, that already exists... 😲 (Well, OK, it's on GNU ELPA, but still.)
>
> I noticed you hadn't listed "permanent" yet, or "durable".
>
> But I do think 'persistent' is the usual term to describe this sort of thing,
> so
> personally I'd find a way to use it.
Actually, what I wanted to add: If this is to be a persistent storage mechanism
for Emacs, I do think there should be an automatic fall-back option for people
that can't or don't want to use sqlite3, e.g., because they prefer their
persistent storage to be in plain text. Even more so if this persistent storage
is going to be used by 2nd and 3rd party packages (which I assume is the
intention). You don't want to leave unsuspecting users hanging when they install
some package that doesn't work as advertised because it uses a persistent
storage
mechanism that doesn't work on the user's installation.
OTOH if no such fall-back is planned, it would IMHO be better to reflect that in
the name of the library and its functions. So preferably `sqlite-defvar` rather
than `persistent-defvar` or something. That would stand a better chance of
alerting package authors to the fact that they cannot count on this
functionality being available on every Emacs install.
Just my €0.02, of course.
--
Joost Kremers
Life has its moments
- Re: Mutating existing persistent data, (continued)
- Re: Mutating existing persistent data, Qiantan Hong, 2021/12/07
- Re: Mutating existing persistent data, Ihor Radchenko, 2021/12/06
- Re: Mutating existing persistent data, Eli Zaretskii, 2021/12/07
- Re: Mutating existing persistent data, Lars Ingebrigtsen, 2021/12/07
- Re: Mutating existing persistent data, Eli Zaretskii, 2021/12/07
- Re: Mutating existing persistent data, Lars Ingebrigtsen, 2021/12/07
- Re: Mutating existing persistent data, Stefan Kangas, 2021/12/07
- Re: Mutating existing persistent data, Lars Ingebrigtsen, 2021/12/07
- Re: Mutating existing persistent data, Bob Rogers, 2021/12/07
- Re: Mutating existing persistent data, Joost Kremers, 2021/12/07
- Re: Mutating existing persistent data,
Joost Kremers <=
- Re: Mutating existing persistent data, Richard Stallman, 2021/12/08
- Re: Mutating existing persistent data, Bob Rogers, 2021/12/07
- Re: sqlite3, Tim Cross, 2021/12/06
- Re: sqlite3, Arthur Miller, 2021/12/06
- Re: sqlite3, Qiantan Hong, 2021/12/06
- Re: sqlite3, Arthur Miller, 2021/12/06
- Re: sqlite3, Yuri Khan, 2021/12/06
- Re: sqlite3, Stefan Monnier, 2021/12/06
- Re: sqlite3, Qiantan Hong, 2021/12/06
- Re: sqlite3, Stefan Monnier, 2021/12/06