3 ms·
Do you have examples of bugs that it causes when more strictly typed? That is, string + number is an error.
by dbaupp 8y ago
Do you have examples of bugs that it causes when more strictly typed? That is, string + number is an error.
- kbenson 8y agoIn those languages, it's more a cognitive mismatch (usually covered up as it's what people learned it as). Even then, people seem to think of + as a special case, and in a language that is otherwise very strictly typed will decide to automatically convert between different numeric types (floating point and integer, for example). That's admittedly a different problem, but it shares a lot in common with what I originally mentioned.