Simple Dependent Types in Python
sobolevn.me·22h·
Discuss: Hacker News

Post logo and title

I am quite excited about this new feature in python: simple dependent types. “Dependent types” might sound complex, but it is not. Instead, it is a useful feature and I am going to show how it works and when you should rely on it.

We are not going to dive deep into the theory and I am not going to provide any kind of math formulas here. As Steven Hawking once said:

Someone told me that each equation I included in the book would halve the sales. I, therefore, resolved not to have any equations at all. In the end, however, I did put in one equation, Einstein’s famous equation, E=mc^2. I hope that this will not scare off half of my potential readers

What is dependent typing? It is a conc…

Similar Posts

Loading similar posts...