Skip to content

Formatter last#45

Merged
simonsteiger merged 6 commits into
mainfrom
formatter-last
Jul 8, 2026
Merged

Formatter last#45
simonsteiger merged 6 commits into
mainfrom
formatter-last

Conversation

@simonsteiger

Copy link
Copy Markdown
Owner

Closes #44.

This PR changes format! API format!(formatter(; settings), tbl, cols...) to format!(tbl, formatter(cols; settings)...), which implies that individual AbstractFormatters now take the columns they should format as their (only) positional argument.

The function-based API format!(f, tbl, cols...) survives as an exception for this to allow for arbitrary formatting.

simonsteiger and others added 6 commits July 8, 2026 08:07
Co-Authored-By: Claude Sonnet 5 <noreply@anthropic.com>
…urrent API

Co-Authored-By: Claude Sonnet 5 <noreply@anthropic.com>
Co-Authored-By: Claude Sonnet 5 <noreply@anthropic.com>
Co-Authored-By: Claude Sonnet 5 <noreply@anthropic.com>
@simonsteiger simonsteiger merged commit f9de5e5 into main Jul 8, 2026
5 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Formatter first in format! feels weird

1 participant