Skip to content

Doc: clarify behavior of line-related functions - #27047

Merged
SolalPirelli merged 2 commits into
scala:mainfrom
dotty-staging:solal/lines-are-complicated
Sep 10, 2026
Merged

SolalPirelli merged 2 commits into
scala:mainfrom
dotty-staging:solal/lines-are-complicated

Conversation

@SolalPirelli

Copy link
Copy Markdown
Contributor

Fixes https://users.scala-lang.org/t/which-line-separator-in-println/12375

This is still not quite right, because how it actually works is:

  • Windows, like typewriters, separates lines with CR + LF
  • Unix-likes instead terminate lines with LF

But it's better than referring to individual characters when there may be more than one.

Have you relied on LLM-based tools in this contribution?

No

How was the solution tested?

Non-code change, no tests needed

@SolalPirelli
SolalPirelli merged commit 1fdff21 into scala:main Sep 10, 2026
63 checks passed
@SolalPirelli
SolalPirelli deleted the solal/lines-are-complicated branch September 10, 2026 14:22
* output (i.e. output not terminated by a newline character) has
* to be made visible on the terminal.
* output (i.e. not ending in a line separator) has
* to be made visible.

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

"visible" is also imprecise as well as biased.

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.

3 participants