Open bronze1man opened 9 years ago
:+1:
Hmm, can't find an official way to deprecate something in Go. Just some stuff from godoc.
I think // @deprecated
and /* @deprecated */
should be good for me.
java,php,csharp use something like this,
The user come from another language may learn less stuff.
I'm not sure we should go down this path just yet. There's no consensus in the community for how. A quick search on github reveals there are only 19 code matches for "@deprecated", out of which 5 matches are in code from your repository. https://github.com/search?l=Go&q=%22%40deprecated%22+language%3AGo&ref=advsearch&type=Code&utf8=%E2%9C%93
Just deprecated looks more popular.
I think deprecated is good. A workable standard like json is a good thing for the community. @ignatov how to do if i actually have a logic that is about deprectated?
It would be cool to have references in godoc comments.
@deadok22 the plugin already supports viewing godoc.org docs: https://www.jetbrains.com/help/idea/2016.1/viewing-external-documentation.html
Is this feature supported by go plugin now?
@elvizlai not yet
The phpstrom support @deprecated to said a function ,a class is deprecated.Everywhere use that function will have a delete line on it. I think it will be good to support it.