|
|
|
|
|
by brundolf
1772 days ago
|
|
I've found this to be a common mindset among people who started out with Java/C#/C++/etc. Modern statically-typed languages are a totally different beast. Type inference is widespread and powerful, and you end up writing very little additional boilerplate. On top of that, guarantees like the prevention of null values greatly increase the value you get from having static types. If you haven't tried one in a few years, I recommend revisiting them. TypeScript is a great place to start. PS: It's totally possible, but also totally unnecessary, to write TypeScript like you would Java or C# (lots of classes, nullable-everything, explicit types for everything). To get the most out of it you honestly have to do the exact opposite of that (turn on strict null checks, use plain types, leverage type inference as much as possible). |
|