10Pines | Blog
  • Home
  • Featured
  • Our Culture
  • 10Pines.com
  • Academy
  • Tags

exceptions

A collection of 2 posts

ruby

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

Juan Pablo Arnaudo Juan Pablo Arnaudo
ruby

Symbols: the new return codes?

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.

Juan Pablo Arnaudo Juan Pablo Arnaudo
10Pines | Blog © 2021
Disclaimer
Latest Posts Facebook Twitter Ghost