-
Notifications
You must be signed in to change notification settings - Fork 1.1k
REPL pretty-printed output does not distinguish between escape sequences and escaped escape sequences #3788
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Comments
I think this could be fixed by simply adding the backslash as a special case to be escaped in |
@jendrikw Makes sense, wanna try? str.foreach { sb.append(c.show) } |
I'll do it this weekend. Is there a reason this is not written as |
That's from e4f7b38; I'm not sure whether unspecific fears about |
Dotty isn't going to inline anything compiled by Scala 2, including the standard library. Running our standard benchmarks won't help you here since we don't benchmark the REPL. In any case, I doubt this is going to make any perceivable difference in performance. |
That's what I hoped, thanks! So @jendrikw go ahead! |
Fix #3788 escape backslash for char and string show
Uh oh!
There was an error while loading. Please reload this page.
These strings are different:
The text was updated successfully, but these errors were encountered: