bug-gnu-emacs
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

bug#52753: 29.0.50; Printing long list-like structures fails


From: Mattias Engdegård
Subject: bug#52753: 29.0.50; Printing long list-like structures fails
Date: Thu, 23 Dec 2021 17:11:10 +0100

The elisp printer isn't really geared towards printing deeply nested values 
since it uses recursion. Perhaps you could just print the contents of your skip 
list as a flat list or vector for serialization purposes, and rebuild the 
structure when loading it back in again.

You could of course always write your own (non-recursive) printer, but be 
prepared that you may need to write a reader as well.

(I'd use a balanced tree-like structure instead of a skip list. Performance is 
similar, and allows for immutability and persistence.)






reply via email to

[Prev in Thread] Current Thread [Next in Thread]