News for hackers. Stuff that matters.
Re:Reading the Ruby Source to Understand Rails Idiosyncrasies by norswap on Saturday July 20, 2013 @05:18PM (#6076615)
Ranges are always continuous, but `cover?` uses the comparison operators, while `include?` iterates over the items in the range in some cases. `include?` is practical in cases where you don't want to implement the comparison operators.

See https://news.ycombinator.com/item?id=6076608

There are no comments on this comment yet.