Repository navigation
Conversation
…ding (D238, closes #2519)
Contributor
Author
|
Battery GREEN on |
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.
Implements #2519 per Eric's ruling (D238 / Law 13; spec v7.95).
with fmt: defaults to 100 columns; configurable via--max-width N(and--max-width=N) and[fmt] max_width = Ninwith.toml, with CLI overridingwith.toml(src/compiler/ProjectConfig.with,src/main.with,build/compiler.with).src/Fmt.with): folds a comment-free block body holding a single plain (single-line, non-block) expression onto the header line when the full rendered line (including leading indentation) is at most the configured width; unfolds an inline single-expression body into a multi-line body when it exceeds the configured width, preserving any trailing comment and staying idempotent.docs/spec/029_lexical-and-binding-rules.md(§29.13, verbatim blessed wording),docs/spec/README.md(v7.95),docs/proposals/with-fmt.md(removed the historical style/semantics conflation and unconfigured soft limit to follow Law 13), anddocs/meetings/2026-11-25-D235-rulings-on-the-briefs-of-2026-11-25.md(noted D238 / Law 13 amendment).test/behavior/behav_2519_fmt_width_and_folding.withcovering default 100-col boundary (100 folds, 101 unfolds), custom--max-width 60+with.toml+ CLI override, indented method near the boundary, comment-bearing bodies untouched, over-width inline body with trailing comment remaining idempotent, and compiler accepting >100-col lines.closes #2519