22 ms·
No I understand, which is why I think type inference is a much better solution than dynamic typing. I use Python and JS often and I am constantly looking up typ
by devsquid 11y ago
No I understand, which is why I think type inference is a much better solution than dynamic typing. I use Python and JS often and I am constantly looking up types of arguments for functions and what their return types is. JSDoc helps, but its pretty tedious. I think dynamic typing is much slower to actually code in.
- yesimahuman 11y agoPersonally, I agree with you that, once you know the type system, you're more productive with it. However, TypeScript is new, and can be difficult to transition to for some people. One example is dealing with some gotcha's like adding new properties to things like window: http://stackoverflow.com/questions/12709074/how-do-you-explicitly-set-a-new-property-on-window-in-typescript http://stackoverflow.com/questions/12709074/how-do-you-expli...
- deleted 11y ago[deleted]
- devsquid 11y agoIs the type system that different from Javascript? I remember looking at it back around 1.0 days and it seemed like basically the same as Javascript, which was one of the reasons I decided not to pursue implementing it in my work.