Skip to content
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

Highlight circular references #56663

Merged

Conversation

jakobjpeters
Copy link
Contributor

@jakobjpeters jakobjpeters commented Nov 24, 2024

The text "#= circular reference @-$d =#" is printed yellow. Adds a test with the context :color => true.

A straw poll on Slack suggests this is an improvement, with 16 18 23 in favor (including myself) and 6 8 opposed as of the time of writing.

Before

before

After

after

The text `"#= circular reference @-$d =#"` is printed yellow.
Adds a test with the context `:color => true`.
@nsajko nsajko added display and printing Aesthetics and correctness of printed representations of objects. REPL Julia's REPL (Read Eval Print Loop) labels Nov 24, 2024
Copy link
Member

@LilithHafner LilithHafner left a comment

Choose a reason for hiding this comment

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

For most users, circular reference display should be pretty infrequent and when it happens is worth highlighting. This is a subjective judgement call. Based on how people expressed their opinions on slack, my personal preference, and how easy this will be to revert, I'm going to go ahead and merge this so we can try it out.

We can (and should) revert if this gets lots of negative feedback before making it into a release.

@LilithHafner LilithHafner merged commit 377643f into JuliaLang:master Nov 24, 2024
9 of 11 checks passed
@jakobjpeters jakobjpeters deleted the highlight_circular_references branch November 24, 2024 16:35
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
display and printing Aesthetics and correctness of printed representations of objects. REPL Julia's REPL (Read Eval Print Loop)
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants