Draft
Conversation
- Replace addStaticLibrary/addSharedLibrary with addLibrary - Add linkage parameter (.static/.dynamic) to library definitions - Update test filter to be set on test object instead of in options Co-Authored-By: Claude Sonnet 4.5 <noreply@anthropic.com>
- Change ArrayList.init(allocator) to .{} syntax
- Update deinit() to deinit(allocator) with allocator parameter
- Update append() to append(allocator, item)
- Update appendNTimes() to appendNTimes(allocator, value, n)
- Update writer() to writer(allocator)
- Update Histogram.deinit signature to include allocator parameter
These changes reflect the Zig 0.15.2 ArrayList API where the allocator
is passed to each method rather than stored in the struct.
Co-Authored-By: Claude Sonnet 4.5 <noreply@anthropic.com>
- Change {} to {any} for types with custom format methods
- Use {any:width} syntax for custom formatters with options
- Update test code to use {any} instead of {s} for Dots types
Zig 0.15.2 requires explicit format specifiers when printing types
that implement custom format methods. Using {any} calls the format
method, while bare {} is now ambiguous and rejected.
Co-Authored-By: Claude Sonnet 4.5 <noreply@anthropic.com>
Replace std.io.getStdOut().isTty() with std.posix.isatty(std.posix.STDOUT_FILENO) In Zig 0.15.2, the I/O module was restructured and getStdOut() was removed. The isatty check is now available through the posix module. Co-Authored-By: Claude Sonnet 4.5 <noreply@anthropic.com>
- Change format method signatures from (self, fmt, options, writer) to (self, writer)
- Update all format specifiers from {any} to {f} to call custom format methods
- Replace writeByteNTimes with splatByteAll (new API in 0.15.2)
- Add HistogramFormatter wrapper to support custom widths with {f} specifier
- Update tests to use {f} format specifier and withWidth() helper
In Zig 0.15.2, the format system changed:
- {f} calls the format method with simplified (self, writer) signature
- {any} bypasses custom formatters and prints struct fields
- Format methods no longer receive fmt/options parameters
Co-Authored-By: Claude Sonnet 4.5 <noreply@anthropic.com>
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
No description provided.