Hacker News new | ask | show | jobs
by akjha 2730 days ago
"It's not nil, but how you use it."

Can you elaborate on how multi-dispatch reduces the issue of nil/null?

I also use static type (typescript) to prevent issues with nil and would like to know how I can achieve the same in a dynamic language.

1 comments

You can prevent nil errors using contracts like in Eiffel and Clojure.