Symbols: the new return codes? (Pt. 2)
Flow control with exceptions and closures In this previous post we've considered the benefits and inconveniences of using nil and symbols as return values in a method. Now we’ll evaluate the possibility
Flow control with exceptions and closures In this previous post we've considered the benefits and inconveniences of using nil and symbols as return values in a method. Now we’ll evaluate the possibility
Recently I’ve read a tweet from Yehuda Katz in which he suggested an interesting idea, as an alternative for using nil as a result from a method: to use a symbol instead.