Skip to content

feat(engine): add -println / -printfln with OS line ending - #72

Merged
helly25 merged 1 commit into
mainfrom
feat/println-printfln
Jun 21, 2026
Merged

feat(engine): add -println / -printfln with OS line ending#72
helly25 merged 1 commit into
mainfrom
feat/println-printfln

Conversation

@helly25

@helly25 helly25 commented Jun 21, 2026

Copy link
Copy Markdown
Owner

-println / -printfln are -print / -printf that terminate with the OS-native line ending (LF today; centralized in kOsLineEnding so a Windows build selects CRLF in one place).

These are xff extensions (single-dash modern primitives). Under the agreed modern-default model they ship enabled by default; the strict find style (--style/--config, #54) will tag and reject them when that filter lands.

Green on default and clang+asan. Test PrintlnAndPrintflnAppendOsLineEnding verifies -println emits path+LF and -printfln appends LF to a -printf format that does not carry one.

-println mirrors -print and -printfln mirrors -printf, each terminating with the OS-native line ending (LF today; a Windows build selects CRLF via the centralized kOsLineEnding constant). They are xff extensions available by default under the modern-default model and will be tagged/rejected under the strict find style when the style/config filter lands (#54). Adds registry descriptors (-println kAction arity 0, -printfln kAction arity 1), evaluate handlers, and the PrintlnAndPrintflnAppendOsLineEnding test.
@helly25
helly25 merged commit 0971f2e into main Jun 21, 2026
4 checks passed
@helly25
helly25 deleted the feat/println-printfln branch June 21, 2026 22:53
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.

1 participant