3 ms·
And some languages don't check types for you before running the code and it's almost 2014 now, can you imagine?
by _random_ 13y ago
And some languages don't check types for you before running the code and it's almost 2014 now, can you imagine?
- barrkel 13y agoRuby, Python, even PHP checks the types of values before executing operations on the values.
- rbanffy 13y agoExactly. They check the types. They don't burden the programmer with such tasks.
- keypusher 13y agoThat's not true, at least with Python. It uses duck typing, there is no type check before execution. It just runs the code you give it, if you try to call a method that doesn't exist (split on a integer), it will just give an error.