#to_s or #to_str? Explicitly casting vs. implicitly coercing types in Ruby
This week in AppSignal Academy: the difference between explicit casting (with #to_s) and implicit coercing (with #to_str) in Ruby, and the difference between typecasting Leonard Nimoy and Michael Keaton. 🖖🦇 http://blog.appsignal.com/2018/09/25/explicitly-casting-vs-implicitly-coercing-types-in-ruby.html
Post a comment