Skip to content

RFC: deprecate showall#22847

Merged
JeffBezanson merged 1 commit into
masterfrom
jb/showall
Jul 18, 2017
Merged

RFC: deprecate showall#22847
JeffBezanson merged 1 commit into
masterfrom
jb/showall

Conversation

@JeffBezanson
Copy link
Copy Markdown
Member

This function has become pretty useless, since showing everything is basically the default.

@JeffBezanson JeffBezanson added deprecation This change introduces or involves a deprecation display and printing Aesthetics and correctness of printed representations of objects. labels Jul 17, 2017
Copy link
Copy Markdown
Member

@ararslan ararslan left a comment

Choose a reason for hiding this comment

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

👍

@KristofferC
Copy link
Copy Markdown
Member

I know BenchmarkTools uses this.

@ararslan
Copy link
Copy Markdown
Member

Does it have to?

@KristofferC
Copy link
Copy Markdown
Member

Probably not, I'm in favour of the deprecation but thought I would mention a place where it is actually used.

@TotalVerb
Copy link
Copy Markdown
Contributor

What happens with repr?

@JeffBezanson
Copy link
Copy Markdown
Member Author

The behavior of repr is the same, since the :limit property defaults to false, and repr calls show with a plain IOBuffer.

Copy link
Copy Markdown
Contributor

@TotalVerb TotalVerb left a comment

Choose a reason for hiding this comment

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

Sounds good then.

Comment thread NEWS.md Outdated
* The method `String(io::IOBuffer)` is deprecated to `String(take!(copy(io)))` ([#21438]).

* The function `showall` is deprecated. Showing entire values is the default, unless an
`IOContext` specifying `:limit=>false` is in use ([#22847]).
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.

unless specifying :limit=>true ?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

deprecation This change introduces or involves a deprecation display and printing Aesthetics and correctness of printed representations of objects.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

6 participants