DEV Community

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

s_anastasov profile image
Stojan Anastasov

I never said you would write 0 unit tests. You would write no tests for types.

Kotlin has nullability built into the language, so I don't have to write a test what happens when the variable I am passing is null.

I also don't have to do defensive programming and check if the variable is null.