"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.
Re:Ruby 2.6
by jashmatthews on Wednesday December 26, 2018 @05:25AM
(#18761519)
You can prevent nil errors using contracts like in Eiffel and Clojure.
I have a hunch that single/static dispatch is what tends to cause more problems than merely the presence of nil. It's not nil, but how you use it.