-
Notifications
You must be signed in to change notification settings - Fork 18
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 overload show(io, ::Type) #31
Comments
I'd be fine with that change. This should also be a little simpler once we merge #12. |
Is it possible to override only how they're shown in the REPL? Could we override just |
Or |
Either way we're still committing type piracy though. |
Are we? Is |
Yes, that's why changing |
It sounds like we have to do this, so let's add |
Closed by #30. |
JuliaLang triage asked why the example needed to be a type, rather than a singleton value? (and hopefully the type-alias-based printing in base now helps this case, assuming |
This is type treason, as Jeff puts it, and makes Bad Things Happen on 0.7. See JuliaLang/julia#24195. If we simply do away with those methods, the printing is a little less concise, but still reasonable (IMO):
This is in line with how Base prints aliases, e.g.
Thoughts?
The text was updated successfully, but these errors were encountered: