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.
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).
I'm also not against static typing, but I am against thinking it's a silver bullet. Consider this: `function inc(x: number): number { return x - 1; }`. It passes the type checker, but the blow torch still burned you.