Hacker News new | ask | show | jobs
by vidarh 848 days ago
"presence" isn't Ruby, but Rails/ActiveSupport and your example acts very differently in the case of empty strings, empty arrays, hashes etc..
1 comments

yes, and?
So it's often a) not available, b) semantically not an alternative.

In particular it very specifically does not return the default only when the object is nil, and I have plenty of code where people thinking they're the same would cause serious breakage.