|
|
|
|
|
by sreque
4929 days ago
|
|
It's worse than that, unfortunately. Everything is implicitly convertible to a string, and every string is implicitly convertible to any other type. So, if you pass a dictionary into your function that expects a list, it will happily convert between types for you. I do not like this sort of behavior in my dynamic type system. |
|
So you like strong typing. I do too, but I like it even more at compile time. If you're doing without the compile time error checking, why not go all the way and do without type errors at runtime as well? Sounds like a choice between:
1. type errors at compile time,
2. data-dependent type errors at runtime, or
3. data-dependent corruption and/or non-type errors at runtime.