louis's Blog

louis's Avatar Image
Software developer #Go #CommonLisp #JS #SQL. #LispWorks user. Soft spots for #Emacs #SmallWeb. Recently becoming #OpenBSD enthusiast. #LinuxMint as a daily driver. Recovering Apple addict.

Author of the Tuner app for Linux.

Other hobbies: #Running #FireFighter #StarTrek
← All posts

TIL: Structures in #CommonLisp are implemented like vectors. Accessing elements is O(1) independent of the number of fields.

They could also be used a tuples. I would prefer structures over ALISTs or PLISTs, even Hashes when the data model is consistent.

Although many prefer CLOS classes over structures, I like their simplicity as a lightweight place for storing data.

To like or reply, open original post on Emacs.ch