From: Yusuke ENDOH Date: 2011-07-17T18:05:19+09:00 Subject: [ruby-core:38133] Re: [Ruby 1.9 - Feature #4766] Range#bsearch 2011/7/17 Thomas Sawyer : > Hi, thanks for example. I may not fully understand bsearch, but basically what I mean is that if finding minimum value is the important thing, then why not call it #find_minimum ? (and what about #find_maximum ?). But if binary search is what is important than could not a #beach (b-each) be combined with a variety of uses. I understand you. In principle, a method name should not represent how it does but what it does. But in this case, the feature has a strict pre-condition: the array must be sorted. So, the name #find_minimum is too generic. We may call it #find_minimum_from_sorted_array or so, but I believe #bsearch is more suitable. -- Yusuke Endoh