3 ms·
Then use TS if you prefer. There are plenty of people who prefer languages like that are type-less, and are plenty proficient in it. If you want a strongly-typ
by cphoover 5y ago
Then use TS if you prefer. There are plenty of people who prefer languages like that are type-less, and are plenty proficient in it.
If you want a strongly-typed static language, compile to a wasm target with typescript, or another language... That's what it there for.
- tekkk 5y agoSure there is but I suppose majority are moving towards typed languages. Perhaps it's sad for some, but it's no fun having to guess types or console.log them because it's just not obvious. Good riddance I say. I'd rather have a proper type-less functional language and it's impossible to create that from JS with its legacy baggage.
- cphoover 5y agoThought experiment If you could go back in time and replace Brendon Eich when he first created JS what would you propose?
- tekkk 5y agoJust ask him to make it more consistent and explain that people will one day create really big apps with the language. Not just little interactive widgets. And design the language from the point of view. Simpler and more scalable. Like having the optional types as proposed here.
- Spivak 5y agoWould you make the same argument if Chrome decided to flip the script and make TS the default browser language and if you wanted something untyped you had to use a compiler?
- cphoover 5y agoI'm not sure how you would go from a static untyped language to a dynamic typed language. Pretty sure only the opposite is possible. You could have type-inference... but this is different from having a weak type system.