Are @param @returns in kdocs discouraged? Asking b...
# announcements
s
Are @param @returns in kdocs discouraged? Asking because I don't see javadoc like doc comments in stdlib or anywhere based on Kotlin.
s
They are. https://kotlinlang.org/docs/reference/coding-conventions.html#documentation-comments
Generally, avoid using 
@param
 and 
@return
 tags. Instead, incorporate the description of parameters and return values directly into the documentation comment, and add links to parameters wherever they are mentioned.
❤️ 1
z
Why is this the recommended practice?
r
That's pretty awful advice for val params on constructors
z
Agreed, the nice thing about using
@param
on constructor params is that the documentation automatically gets applied to the properties as well.