3 ms·
Every other language does that by default with "var", "let", or in some languages nothing at all. Within functions it doesn't matter that much and using an IDE
by Too 2y ago
Every other language does that by default with "var", "let", or in some languages nothing at all. Within functions it doesn't matter that much and using an IDE takes care of quick lookups anyway.
- dgfitz 2y agoWasn’t typescript created to fix this problem for JS?
- jeremyjh 2y agoUsing `let` does not make the expression un-typed in Typescript. It means the type is inferred, and you'll get type warnings if you use it where a different type is expected.
- maccard 2y agoEven for the non ide folks - vim emacs and vs code all have excellent support for that.
- ranger_danger 2y agoHow does vim support this? I thought you had to use custom scripts/extensions to do it?
- maccard 2y agoSorry I wasn’t clear - all those editors have simple (ish) plugins that support it