DEV Community

Discussion on: What the hell is type-safe language?

Collapse
 
s_anastasov profile image
Stojan Anastasov • Edited

Well, you could have the compiler verify the types for you or write unit tests instead..

How else do you make sure the function expecting a User doesn't get a Monkey instead?