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

Fix the printnode override feature & add test for it #111

Merged
merged 1 commit into from
Aug 1, 2022

Conversation

YingboMa
Copy link
Contributor

@YingboMa YingboMa commented Jul 7, 2022

No description provided.

@Roger-luo
Copy link

I also need this, by any chance, this PR could be reviewed and merged?

@oscardssmith oscardssmith merged commit 7285f40 into JuliaCollections:master Aug 1, 2022
Copy link
Collaborator

@jlumpe jlumpe left a comment

Choose a reason for hiding this comment

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

I did the thing again where I accidentally started a whole review instead of just making individual comments, and never hit submit on it. I know this got merged last week, but could you address my comment about printing.jl lines 197-199?

str = repr_node(node, context=io)
buf = IOBuffer()
printnode(IOContext(buf, io), node)
str = String(take!(buf))
Copy link
Collaborator

Choose a reason for hiding this comment

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

Why this part? This is essentially replacing the function call with its implementation.

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.

4 participants