4 ms·
I find they clutter the code more than they help. Good names and docstrings and comments are more valuable. And static types are for people who are too lazy to
by mharig 4y ago
I find they clutter the code more than they help. Good names and docstrings and comments are more valuable.
And static types are for people who are too lazy to write test code.
- lucasyvas 4y agoSorry but this is a garbage take. Typing negates the need for writing useless tests that just verify the correct value types are passed - it does not negate the need for writing functional tests. Where did you come up with this?
- mharig 4y agoYou seem to not understand duck typing. Functional tests will test the correct types, too. Edit: If you need an object that swims and quacks, you don't need to care if it is a rubber duck or an animal.