Testing is important, but nowadays we also have compilers/typecheckers (e.g., Mypy, but also ruff does type checking I believe) and linters that can highlight problems with code.
Some things that you might have to write tests for could be covered by static type checkers which get you information even quicker than running tests.
It's kind of weird that we talk about testing for correctness, but we don't mention potentially cheaper and more convenient alternatives and safety nets and their limitations (heh! I don't need tests, my code compiles!)
Problem: I honestly don't know how evolved is the R tooling in this regard.
(please assign label "idea" or something similar to this issue)
Testing is important, but nowadays we also have compilers/typecheckers (e.g., Mypy, but also ruff does type checking I believe) and linters that can highlight problems with code.
Some things that you might have to write tests for could be covered by static type checkers which get you information even quicker than running tests.
It's kind of weird that we talk about testing for correctness, but we don't mention potentially cheaper and more convenient alternatives and safety nets and their limitations (heh! I don't need tests, my code compiles!)
Problem: I honestly don't know how evolved is the R tooling in this regard.
(please assign label "idea" or something similar to this issue)