DEV Community

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

s_anastasov profile image
Stojan Anastasov • Edited on

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?