3 ms·
You're absolutely right. I'm an C# dev who switched to JavaScript stack and using TypeScript already for 5-6 months. It was just a first-look description for th
by ixtraz 13y ago
You're absolutely right.
I'm an C# dev who switched to JavaScript stack and using TypeScript already for 5-6 months. It was just a first-look description for the TypeScript.
Btw, TypeScript also aiming to fix context problem so in callbacks 'this' keyword is always related to parent class.
- klibertp 13y ago`this` being dynamically bound is a feature, it's broken as intended. You can always `bind` a function to remedy this if it's a problem for you.
- lucian1900 13y agoWhy would it be a feature? It is almost never the desired outcome, thus a terrible default.