Skip to main content

A normal thing for a beginning Idris programmer is to use dependent types absolutely everywhere, to attempt to explain everything in a type. Beginning Idris programmers should definitely go through this phase, if only to learn why it's probably better not to do that.

The short answer for why to not do that is: you have merely moved the problem from the program to the type, and you've made the program harder to write in the process. The point of types, to me, is not to prove everything. Rather, it's to help you understand the problem better, and to help you come up with explanations of the data you're working with that will make the rest of your project easier to handle.

0 Boosts
0 Likes