That’s what the hipsters call β€œSmalltalk inspired” nowadays…

nil.empty?  # NoMethodError: undefined method `empty?' for nil:NilClass

In Objective-C, any message to nil returns nil. In Ruby? Exception :-(


Categories and tags

Posts Notes #ruby

Post your response

If you write a response on your website, mark it up with h-entry and let me know the URL: