Niko
12/29/2021, 12:27 PM@sample
annotations) I began to wonder:
Almost nothing is as bad as public API being documented wrong: old information, deprecated behaviour, bugs in the code having invalid/unexpected behaviour.
This is mostly about compiler+dokka/kdoc, but would it be feasible to offer an additional @proof path.to.Test.withProofOfBehaviour
attached to kdoc paragraph, that at compile time/in IDE after changes to source would be checked (run using the test runner, like git bisect
) and show the doc with red squiggly if doc proof didn't pass?hfhbd
12/29/2021, 12:57 PMNiko
12/29/2021, 1:12 PM