Lint.jl icon indicating copy to clipboard operation
Lint.jl copied to clipboard

Non-IO show calls in show overload

Open TotalVerb opened this issue 8 years ago • 0 comments

I make this mistake a lot:

Base.show(io::IO, x::MyType) = print(x.data)

Note that should have been print(io, x.data). We could warn when an IO function called within a show overload does not seem to have the IO object as its first argument.

TotalVerb avatar Oct 16 '16 05:10 TotalVerb