News for hackers. Stuff that matters.
Re:TypeScript Roadmap 2019 by z3t4 on Wednesday January 09, 2019 @05:39AM (#18863744)
JavaScript will always convert a value to a type. It's dynamic, but very strongly typed. JavaScript engines do not care about type annotations, only TypeScript does. You might have annotated something as a number, but the JavaScript engine might chose to convert it to a string ... I think type annotations is a unnecessary chore, and that types should be inferred.
Re:TypeScript Roadmap 2019 by ethelward on Wednesday January 16, 2019 @10:26AM (#18921594)
Types cannot be inferred in dynamic typing systems. That is the whole point of dynamic type systems: type might change during runtime.