|
|
|
|
|
by joe-user
3353 days ago
|
|
> I've worked with functions in JavaScript that change functionality radically depending on whether you pass an integer or an object.
> I thought this was the way of the world until I got deeper into typed languages, where you learn why not doing that is good. Type envy still stings though. This is just polymorphism, isn't it? Why is this not a good thing? |
|
The great thing about statically-typed languages is that they help you write your software instead of giving you a blowtorch and saying "have fun". I know a lot of people find that a bit patronizing, but I'm not one to turn down help (especially from a bot that won't call me on it later).