3 ms·
TypeScript to the rescue! I just prefer strongly typed languages, but it's things like this that disappear (for the most part) when you have types. I personally
by jjice 5y ago
TypeScript to the rescue! I just prefer strongly typed languages, but it's things like this that disappear (for the most part) when you have types. I personally can't keep types in my head as well as some, so when the language forces me to, it helps a lot. Vanilla JS just makes me feel like I'm walking on egg shells.
Then we can get into a lot of fun when we get to type systems like SML and Rust where you start to really touch on some power (but can become intimidating). I'm still a bit weary of trying to hop into Haskell.
- tabtab 5y agoI just wish TypeScript supported optional named parameters. Once I got used to them in C#, it's hard to live without. They make adding enhancements so much easier. The work-arounds, such as object literals, are just not the same.