29 aug. 2025 kl. 15.31 skrev Daniel Mendler <[email protected]>:
> Well, in the agenda buffer the habit graph looked correctly if I used > `·`, but only before the string resizing. I haven't configured Latin-1. > It should be all Unicode. I am not sure what was going on. Maybe in your setup the other org-habit-something-glyph was a non-ASCII non-Latin-1 one like `•` and it was put in the string first, thus transforming the string to multibyte before the `·` was written to the string? > Sure, an opaque iterator type is another reasonable alternative, but > maybe more if a language implementation is started from scratch. It > might not integrate so well into Elisp. It's certainly not a near-term project but in the long run we definitely want a language that is efficient for text processing (among other things), so it's worth thinking about now and then. >> Yes, it's been discussed. Specifically making some strings immutable >> would indeed be useful but there are quite a few technicalities here. > > What about other objects? Do you see runtime benefits there, besides > preventing bugs, if we can enforce immutability? Probably, we do pay some price for lists being mutable. Maybe we can find a spare bit to control that in the future.
