5 ms·
It's a very good thing that when there's only one way to get the correct result, the compiler forbids everything else. Would you prefer the compiler allow inco
by chowells 13y ago
It's a very good thing that when there's only one way to get the correct result, the compiler forbids everything else.
Would you prefer the compiler allow incorrect code?
- judk 13y agoAll the Python fans say "yes".
- eru 13y agoGHC added that as a feature, recently.
- drdaeman 13y agoNot all. PyCharm has excellent static analysis capabilities for this. One just have to hint it with `assert isinstance(spam, Egg)` on occasions. Catches me tons of bugs before interpreter ever hits them. Which is way nicer than getting an exception notification email with some live customer hitting 500 page because there's a TypeError in some obscure execution path you've never really tested.