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

Don't print type prefix for String array #23644

Merged
merged 1 commit into from
Sep 10, 2017

Conversation

iamed2
Copy link
Contributor

@iamed2 iamed2 commented Sep 8, 2017

This brings show(::IO, ::Vector{String}) in line with show for other vectors of types constructed from literals.

Before:

julia> string(["foo", "bar"])
"String[\"foo\", \"bar\"]"

After:

julia> string(["foo", "bar"])
"[\"foo\", \"bar\"]"

@ararslan ararslan added arrays [a, r, r, a, y, s] display and printing Aesthetics and correctness of printed representations of objects. labels Sep 8, 2017
@iamed2 iamed2 force-pushed the stringarray-no-prefix branch from 9bda695 to b4ca2c9 Compare September 9, 2017 18:23
@StefanKarpinski StefanKarpinski merged commit fce0a3c into JuliaLang:master Sep 10, 2017
@iamed2 iamed2 deleted the stringarray-no-prefix branch September 10, 2017 22:43
vtjnash pushed a commit to vtjnash/julia that referenced this pull request Sep 11, 2017
vtjnash pushed a commit to vtjnash/julia that referenced this pull request Sep 11, 2017
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
arrays [a, r, r, a, y, s] display and printing Aesthetics and correctness of printed representations of objects.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants