You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
In the documentation, https://esdoc.org/manual/tags.html, there is no reference to @returns. I couldn't find it anywhere. I could only find @return as the correct tag.
However, when @returns is used in the code, the docs are still generated correctly, as if we used @return.
This ambiguity causes inconsistency in codebases if different team members use different tags.
To fix this issue, team members have to be aware of this and stop using one or the other.
Preferably stop using @returns, but if a project grows so much to the point that @returns is in 95% of the code base, then it makes it difficult to argue in favor of @return.
A better fix would be if ESDocs sticked with its Documentation and supported @return only.
Another fix would be if ESDocs supported @returns only and updated its Documentation accordingly.
But not both.
Insights?
The text was updated successfully, but these errors were encountered:
I strongly disagree that either @return or @returns should be removed. Instead, the docs should be updated to make it explicit that @return is an alias for @returns. This is how JSDoc handles this situation. It is similar to @param, @arguments & @arg.
One final point, @returns is more in keeping with @throws, so it is definitely the most consistent of the two options. Because @returns is not documented I use @return, and it drives me nuts that it's @return followed by @throws on the next line 🙂
This is a question/issue/feature request.
In the documentation, https://esdoc.org/manual/tags.html, there is no reference to
@returns
. I couldn't find it anywhere. I could only find@return
as the correct tag.However, when
@returns
is used in the code, the docs are still generated correctly, as if we used@return
.This ambiguity causes inconsistency in codebases if different team members use different tags.
To fix this issue, team members have to be aware of this and stop using one or the other.
Preferably stop using
@returns
, but if a project grows so much to the point that@returns
is in 95% of the code base, then it makes it difficult to argue in favor of@return
.A better fix would be if ESDocs sticked with its Documentation and supported
@return
only.Another fix would be if ESDocs supported
@returns
only and updated its Documentation accordingly.But not both.
Insights?
The text was updated successfully, but these errors were encountered: