DEV Community

Discussion on: Dynamic typing is a sin

tylerlwsmith profile image
Tyler Smith

I'm torn on this subject. I've switched from JavaScript to TypeScript because it gives much more confidence when I'm working on code.

But my favorite TypeScript feature is that it can turn TypeScript off. This is useful when I need to work especially quickly, or I have a single function that would be tricky to add types to, but I have confidence in that function's code will behave as expected. I really like incrementally adoptable types, and I hope to see more of the existing dynamically-typed languages move towards this direction.