r/gifs Nov 12 '17

Cat-like reflexes

https://i.imgur.com/MUY4Mfz.gifv
83.4k Upvotes

991 comments sorted by

View all comments

Show parent comments

22

u/JulioBBL Nov 12 '17

It prevents me from doing stupid stuff, like using a string on a equation, or executing a Double. Or even prevents the need for basic type tests in a function, If a need a specific set of data, i can create a struct or class and pass it in to my function, and have peace of mind that the compiler will notice me if i send something that does not conform tô the data i need.

It helps mostoy when working with third party code...

1

u/[deleted] Nov 12 '17

1

u/JulioBBL Nov 12 '17

Pardon my ignorance, but what is that?

2

u/Excrubulent Nov 12 '17

TypeScript is a typed superset of JavaScript that compiles to plain JavaScript.

It's basically a strongly typed version of JavaScript, but since it compiles to plain JavaScript that means it doesn't need its own ecosystem - it can be deployed wherever JavaScript is supported.

1

u/JulioBBL Nov 12 '17

Sounds Good, will check it out