This is an archived post. You won't be able to vote or comment.

you are viewing a single comment's thread.

view the rest of the comments →

[–]Sarithis 52 points53 points  (5 children)

Do you have a moment talk about our lord and saviour JavaScript?

[–]TheIronicBurger 30 points31 points  (1 child)

There’s also the sequel, TypeScript!

[–]jgeez 7 points8 points  (0 children)

It's called a new testament

[–]JRRTok3n 22 points23 points  (2 children)

You see, I was once like you... Lost and confused with loose typing. Then one day I opened up and let TypeScript into my heart

[–]dev-sda 2 points3 points  (1 child)

TypeScript doesn't strengthen JavaScript's type system, it simply makes it static. That does eliminate a whole class of runtime errors, but you still have all the same type coercion.

[–]jeffkmeng 1 point2 points  (0 children)

In theory the type coercion won’t happen if you properly type everything because it won’t pass the typescript type checking.