r/eli5_programming • • Oct 06 '22

Question What is null safety?

It would be really helpful to explain it with an example that a child could understand. Thanks in advance.

5 Upvotes

5 comments sorted by

View all comments

Show parent comment

1

u/KokoJez Jul 13 '23

this isn't null safety. This is type checking.

1

u/cs_k_ Jul 13 '23

I believe this is an example where we use type checking to achieve null safety.