Skip to content

Conversation

@nevans
Copy link
Collaborator

@nevans nevans commented Dec 10, 2025

This should not change any code, except for the order in which the methods (and constant) are defined.

This also adds vim foldmarkers. In general, I think that needing manual foldmarkers is a code smell, and this is no different. It usually means some new classes and objects should be extracted. I've avoiding extracting new classes mostly for performance reasons: new objects require extra allocations, and I want that change to be justified by accompanying some performance improvements. (On the other hand, subclassing Array will allow us to better organize the code while avoiding extra allocations.)

But also, this is preparatory for much bigger changes, which almost certainly will introduce new classes for the internal data structures. (See #484.)

This commit should not change _any_ code, except for the order in which
the methods (and constant) are defined.

This also adds vim foldmarkers.  In general, I think that needing manual
foldmarkers is a code smell, and this is no different.  It usually means
some new classes and objects should be extracted.  I've avoiding
extracting new classes mostly for performance reasons: new objects
require extra allocations, and I want that change to be justified by
accompanying some performance improvements.  (On the other hand,
subclassing Array will allow us to better organize the code while
avoiding extra allocations.)
@nevans nevans merged commit d9e7a00 into master Dec 10, 2025
32 checks passed
@nevans nevans deleted the sequence_set/rearrange-private-methods branch December 10, 2025 14:47
@nevans nevans added the sequence-set Any code the IMAP `sequence-set` data type or grammar rule, especially the SequenceSet class. label Dec 10, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

sequence-set Any code the IMAP `sequence-set` data type or grammar rule, especially the SequenceSet class.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants