Agree but i wasnt talking about removing find you would still have find
returning a region/index just it will be used less if you add lest say
FindSubString and FindReplace etc , developers will favour the 1 liner    .

Ben


On Sun, Sep 15, 2013 at 11:53 PM, David Jeske <[email protected]> wrote:

> On Sep 15, 2013 4:39 AM, "Bennie Kloosteman" <[email protected]> wrote:
> > var str = "Abc123"
> > var index = str.Find("c1");
> > var substr = str.SubString(index, 2);
>
> I don't like your suggested code transformation. I think it is very
> important that the above code run unmodified - because it may do more
> complex things with the result of find.
>
> My suggestion was for the return type of find to change from an int to
> some abstract location handle - possibly just a byte offset wrapped to keep
> it opaque.
>
> _______________________________________________
> bitc-dev mailing list
> [email protected]
> http://www.coyotos.org/mailman/listinfo/bitc-dev
>
>
_______________________________________________
bitc-dev mailing list
[email protected]
http://www.coyotos.org/mailman/listinfo/bitc-dev

Reply via email to