deduplicate classes #4

Open
opened 2026-03-19 21:12:19 +01:00 by christian · 0 comments
Owner

The good thing about hashes as class names is that we can deduplicate them before writing them into the file.

Probably all but the first occurrence of the class should be deleted. This means the definition is in a different section of the file. If that definition gets deleted, we need to move it to the next location where that class occurrs. This means, we need to keep a placeholder comment when deleting a class.

Alternatively there can be a "raw" output file which is not deduplicated, and a "final", deduplicated output file.

The good thing about hashes as class names is that we can deduplicate them before writing them into the file. Probably all but the first occurrence of the class should be deleted. This means the definition is in a different section of the file. If that definition gets deleted, we need to move it to the next location where that class occurrs. This means, we need to keep a placeholder comment when deleting a class. Alternatively there can be a "raw" output file which is not deduplicated, and a "final", deduplicated output file.
Sign in to join this conversation.
No labels
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference
christian/ppx_stylesheet#4
No description provided.