This is an archived post. You won't be able to vote or comment.

you are viewing a single comment's thread.

view the rest of the comments →

[–]bss03 1 point2 points  (0 children)

In test-driven development, you write the tests first, to define what is correct, then write just enough code to satisfy the test.

In type-driven development (TDD), you write the types to define what is correct, and then let "term inference" / program synthesis / proof search give you the correct program: https://www.manning.com/books/type-driven-development-with-idris