Re:Announcing TypeScript 0.8.1 with Source level debugging
by embwbam on Friday November 16, 2012 @09:44AM
(#4794023)
I ported a project to TypeScript last week, and was very impressed with the language. I had rejected it out of hand in favor of coffeescript, but didn't realize how modern and expressive a type system they had created. Bug-catching gains were immediate, and while it took a little bit to get comfortable with its ins and outs, I'm excited about coding everything in JS again.
[ Parent
| on HN ]
Re:Announcing TypeScript 0.8.1 with Source level debugging
by account_taken on Friday November 16, 2012 @11:17AM
(#4794412)
100% agree. As much as I love CoffeeScript, the intellisense and type hinting is an invaluable aid to our team. TypeScript is the answer to team collaboration on large projects. There's no more guessing what the arguments are, whether an argument is an object or string. Source maps is icing on the cake.
Re:Announcing TypeScript 0.8.1 with Source level debugging
by BadDesign on Friday November 16, 2012 @05:58PM
(#4796313)
Have you tried https://www.jetbrains.com/webstorm/ ? I find it quite good at intellisense.
Re:Announcing TypeScript 0.8.1 with Source level debugging
by teamonkey on Friday November 16, 2012 @12:35PM
(#4794833)
I would be absolutely delighted if type hinting made its way into CoffeeScript somehow.
Re:Announcing TypeScript 0.8.1 with Source level debugging
by embwbam on Friday November 16, 2012 @07:14PM
(#4796555)
Yeah, my dream is a Typescript + Coffeescript dialect.
Re:Announcing TypeScript 0.8.1 with Source level debugging
by gregwebs on Friday November 16, 2012 @09:52AM
(#4794052)
I am impressed at how expressive interfaces and structural sub-typing are for Javascript, even though there is still no way to express a heterogeneous array. However, I have been very disappointed at how weak their type inference is and that they have no plans to improve it. http://typescript.codeplex.com/workitem/329
Re:Announcing TypeScript 0.8.1 with Source level debugging
by twp on Friday November 16, 2012 @10:05AM
(#4794091)
Heterogenous arrays can have very poor performance on some JavaScript VMs, particularly Google's V8. If you can avoid them in performance sensitive code, it's a good idea to do so.
For more information, see this excellent talk: http://v8-io12.appspot.com/
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.