|
From: | Adam Porter |
Subject: | Re: Improving Emacs' iCalendar support |
Date: | Sat, 19 Oct 2024 22:09:11 -0500 |
User-agent: | Mozilla Thunderbird |
Hi Richard, On 10/19/24 03:39, Richard Lawrence wrote:
Thanks, that's useful advice. I've been toying with the idea of using EIEIO classes to represent at least the "component"-level data structures (events, to-dos, journals, timezones, whole calendars), which if I understand correctly use structs under the hood. But I don't really have any experience with EIEIO and I'm not sure if the added complexity of the object system will buy much over using plain structs. Do you have any thoughts about this?
I'd recommend sticking with CL-STRUCTs unless and until you find a real need for EIEIO's additional functionality.
My point of experience is having used EIEIO for my work on the now-obsolete matrix-client.el package: It worked fine, but I found that I never used more than what CL-STRUCT's API offers; so in the successor, Ement.el, I've just used structs, and it's worked out very well.
If you're still not sure which to use, you might talk with Jonas Bernoulli (aka tarsius, the Magit maintainer), as he's written more EIEIO-related code than I have, and his perspective could be valuable.
--Adam
[Prev in Thread] | Current Thread | [Next in Thread] |