# Re: string range membership

**URL:** <https://www.ruby-forum.com/t/re-string-range-membership/76658>\
**Category:** Ruby\
**Created:** [November 28, 2005, 5:34pm UTC](https://www.ruby-forum.com/t/re-string-range-membership/76658 "2005-11-28T17:34:45Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![warrenbrown](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/w/f9ae1b/32.png) [@warrenbrown](https://www.ruby-forum.com/u/warrenbrown)\
**Post date:** [November 28, 2005, 5:34pm UTC](https://www.ruby-forum.com/t/re-string-range-membership/76658/1 "2005-11-28T17:34:45Z")

</div>

Matz,

> Anyway, could Range#include? and Range#member? be  
> changed back to a membership check and a new method  
> be added to Range for interval coverage, or would  
> that break too much backwards compatibility?

```
Without an answer to this question, people will not know which of

```

the two functionalities to choose a name for. If the answer is “yes”,  
then we are looking for a name for a membership check. If the answer is  
“no”, then we are looking for a name for an interval inclusion test.

```
Did I miss something somewhere?

- Warren B.
```

---

<div class="post-metadata">

**Author:** ![warrenbrown](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/w/f9ae1b/32.png) [@warrenbrown](https://www.ruby-forum.com/u/warrenbrown)\
**Post date:** [November 28, 2005, 5:51pm UTC](https://www.ruby-forum.com/t/re-string-range-membership/76658/2 "2005-11-28T17:51:14Z")

</div>

Hi,

In message “Re: [BUG] string range membership”  
on Tue, 29 Nov 2005 01:33:05 +0900, “Warren B.”  
[removed\_email\_address@domain.invalid](mailto:removed_email_address@domain.invalid) writes:

|\> Anyway, could Range#include? and Range#member? be  
|\> changed back to a membership check and a new method  
|\> be added to Range for interval coverage, or would  
|\> that break too much backwards compatibility?  
|  
| Without an answer to this question, people will not know which of  
|the two functionalities to choose a name for. If the answer is “yes”,  
|then we are looking for a name for a membership check. If the answer is  
|“no”, then we are looking for a name for an interval inclusion test.  
|  
| Did I miss something somewhere?

I’m vaguely thinking of changing #member? back to membership check,  
with performance optimization for numbers.

```
						matz.

```
