Should this work?

Manu turkeyman at gmail.com
Sat Jan 25 01:17:55 PST 2014


On 24 January 2014 21:49, Regan Heath <regan at netmail.co.nz> wrote:

> On Fri, 24 Jan 2014 08:21:12 -0000, Jacob Carlborg <doob at me.com> wrote:
>
>> I would expect "contains" to take a element and check if it exists in the
>> range.
>>
>
> Except in the case of string, where we also want an overload taking more
> than a single element aka a substring.


A great example of when the string function should not be conflated with
the general function.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.puremagic.com/pipermail/digitalmars-d/attachments/20140125/b3fda81b/attachment-0001.html>


More information about the Digitalmars-d mailing list