News for hackers. Stuff that matters.
Re:Ruby 2.6 by akjha on Tuesday December 25, 2018 @03:10AM (#18756523)
"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.