Closed timholy closed 8 years ago
Not a huge fan of the string quotes. How about using sth like:
immutable Placeholder
test::String
end
show(io::IO, x::Placeholder) = print(io, "<", x, ">)
I mostly expected you to say that. The definition of show
you suggested will StackOverflow (print
is defined in terms of show
), but try this on for size:
About to run:
(getindex)(<suppressed 1000-element Array{Float64,1}>,2)
I meant x.test
or whatever I called that field ;)
Nice, I like it!
With this, you get:
which is much nicer than master's
particularly when the array has 10^8 elements rather than 10^3 elements. Even with 10^3 elements it is several screens-full.