-
Notifications
You must be signed in to change notification settings - Fork 31
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
warning when redefining show, Julia >=0.5 only #20
Comments
Yes, this is expected and is hitting one of 0.5's more controversial features: The
So if you define your own show method it will overwrite the one of Solutions: live with it or remove the show definition from the macro. |
Ok, thanks. |
One solution could be to have several macros, one of which, didn't make a |
Also you could use https://github.com/Ismael-VC/Suppressor.jl:
|
Closing this as "won't-fix" as I want to keep the automatically defined show methods. |
Could you please reconsider this issue? I really like the keyword parameters, but I also think that in many cases the user wants to write their own I hope the issue won't be ported to Base. Keyword parameters are awesome without shows. |
|
Wonderful! |
Ok. |
This still needs docs, so I'll keep it open for now. But it works:
|
That is awesome @mauro3 , thanks for adding this feature 🙂 |
You're welcome! |
Now also has docs. |
Since Julia 0.5 I get (slightly annoying)
WARNING: Method definition show(IO, ....
when redefining the show function of a "with_kw" immutable:
The text was updated successfully, but these errors were encountered: