News for hackers. Stuff that matters.
Re:Announcing TypeScript 1.8 Beta by scotty79 on Thursday January 28, 2016 @08:41PM (#10992923)
Still no love for typing of `this` or `call()` and such
Re:Announcing TypeScript 1.8 Beta by Ycros on Thursday January 28, 2016 @11:30PM (#10993506)
Can you elaborate on what you mean by that? 1.7 added 'this' typing improvements, and it looks like 1.8 is adding 'this'-based type guards.
Re:Announcing TypeScript 1.8 Beta by scotty79 on Friday January 29, 2016 @02:37AM (#10994004)
I mean, when specifying function type, you can't specify type of `this` that the function expects to be run with. And `call()` expects thisArg:any, ...args:any[] for all functions regardless of their declared parameter types and expected type of `this`.

I'm talking about the usual js `this`, the covertly passed parameter, not typescript `this`, type of own class.

Funny they focused so much on classes that they reached 1.8 without so much as touching js most unique feature, flexible `this`.