1
0
Fork
You've already forked zar
0

Restructured argument parsing, robust IoError, typos corrected, etc. #60

Merged
EnronEvolved merged 3 commits from code-cleanup into main 2025年08月16日 22:01:57 +02:00
EnronEvolved commented 2025年08月16日 14:15:27 +02:00 (Migrated from github.com)
Copy link

This pull requests lumps together a number of changes:

  • The argument parsing logic has been restructured to use new language features, as detailed in the commit log. I think the logic survived the restructuring. We shall have to see how tests shake out.
  • Archive.IoError has been rewritten as a union of various std.fs.File error sets, so it doesn't break whenever Andrew Kelley and friends twiddle them.
  • err_result has been renamed to fallible in Archive.handleFileIoError, to express the idea of the function more clearly.
  • Assorted minor spelling mistakes in code comments have been corrected.

These changes build, and pass zig build test locally.

This pull requests lumps together a number of changes: * The argument parsing logic has been restructured to use new language features, as detailed in the commit log. I _think_ the logic survived the restructuring. We shall have to see how tests shake out. * `Archive.IoError` has been rewritten as a union of various `std.fs.File` error sets, so it doesn't break whenever Andrew Kelley and friends twiddle them. * `err_result` has been renamed to `fallible` in `Archive.handleFileIoError`, to express the idea of the function more clearly. * Assorted minor spelling mistakes in code comments have been corrected. These changes build, and pass `zig build test` locally.
moosichu commented 2025年08月16日 22:02:18 +02:00 (Migrated from github.com)
Copy link

Looks fab thank you! Especially catching my typos 😅

Looks fab thank you! Especially catching my typos 😅
Sign in to join this conversation.
No reviewers
Milestone
Clear milestone
No items
No milestone
Projects
Clear projects
No items
No project
Assignees
Clear assignees
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
Moosichu/zar!60
Reference in a new issue
Moosichu/zar
No description provided.
Delete branch "code-cleanup"

Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?