3 ms·
If you want to enforce contracts, pick a language that encourages it. There are many to choose from. Plenty of people are doing just fine in Python without this
by possibilistic 13y ago
If you want to enforce contracts, pick a language that encourages it. There are many to choose from. Plenty of people are doing just fine in Python without this.
It's almost an entirely distinct problem domain. Besides, what would a contract be in a dynamically typed language?
I don't think these features are bad, but they're not appropriate everywhere.
- jafaku 13y ago> If you want to enforce contracts, pick a language that encourages it. Yeah don't worry, I'm not gonna use Python. > Besides, what would a contract be in a dynamically typed language? Being dynamic has nothing to do with this. See: Clojure, PHP, etc. They have contracts. Of course things might not be appropriate everywhere. But with Python/Ruby you don't have a choice, they just lack these features.