Re:Announcing TypeScript 0.8.1 with Source level debugging
by Locke1689 on Friday November 16, 2012 @05:24PM
(#4796193)
You can't make the inference you suggest in the bug. It's not always valid. What if you set the variable in the function?
This line of type inference is very problematic in languages like JavaScript. Your statement that you expected "modern type inference" makes it sound like you only have practical knowledge (maybe you've used ML or Haskell?), not theoretical background. You should review the literature.
This line of type inference is very problematic in languages like JavaScript. Your statement that you expected "modern type inference" makes it sound like you only have practical knowledge (maybe you've used ML or Haskell?), not theoretical background. You should review the literature.