3 ms·
> In duck-typed like Ruby/Python, you don't necessarily know whether a piece of code is going to fail, so you assume it does You should always assume there may
by shusson 9y ago
> In duck-typed like Ruby/Python, you don't necessarily know whether a piece of code is going to fail, so you assume it does
You should always assume there may be runtime errors regardless of whether you have some sort of static type safety or not.
There are some languages that can guarantee no runtime errors, but they make significant sacrifices in terms of features [1].
[1] http://www.adacore.com/sparkpro/ http://www.adacore.com/sparkpro/