Which is the correct way of documenting getter &am...
# getting-started
m
Which is the correct way of documenting getter & setter separately?
Copy code
var value: T
    /**
     * Returns current value.
     */
    get <-- 'redundant getter'
    /**
     * Changes value and notifies listeners. Will break current binding, if any.
     */
    set <-- 'redundant setter'
UPD: found: https://youtrack.jetbrains.com/issue/KT-17962
o
Why do you need to document getter and setter? I would document a property instead.
m
Because the setter has an important side-effect which I want to describe. Finally, documented a property.
n
the setter has an important side-effect
🤔
m
The property is observable. The side-effect is observers notification. Anything wrong? 🙂
n
not wrong, uncommon now i understand why you want to document it