3 ms·
> My attitude is that if you really need them you should switch to e.g. OCaml or something that does them right. I strongly disagree. I personally think there
by gnulinux 3y ago
> My attitude is that if you really need them you should switch to e.g. OCaml or something that does them right.
I strongly disagree. I personally think there is no programming problem where types aren't useful. When I write code, I think in terms of types, and rarely in terms of anything else. Python is useful in tons of problems OCaml isn't such as data science, statistics etc. Besides python has a very large ecosystem which matters in order not to reinvent the wheel.
- carapace 3y ago> I personally think there is no programming problem where types aren't useful. I'd have to disagree with that just on first principles: no absolutes. (Note that that's an absolute.) :) Anyway, I'm not trying to argue that types are not useful, they are. What I'm saying is that Python's loose approach to typing is useful "in the small" so to speak, but as projects grow larger you want "harder" types, checked by machine. Same thing with DB schema: No-SQL only makes sense in the small domains where the schema can be ignored or treated as an afterthought. Above a certain size and you grow a schema again and might as well do it right.