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

closures

A collection of 2 posts
Symbols: the new return codes? (Pt. 2)
opinion

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 of throwing an exception, and yet another alternative: using a closure. So, before jumping in,
Sep 29, 2014 4 min read
Symbols: the new return codes?
opinion

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. Well, this post is about the reasons why I think you shouldn’t use a symbol, and
Sep 23, 2014 5 min read
Page 1 of 1
10Pines | Blog © 2025
Disclaimer
Powered by Ghost