On Mon, Oct 20, 2014 at 7:10 PM, Ben Kloosterman <[email protected]> wrote:
> The big question is will strings or sub-strings be / support slices > Yes, that's a big question, and I've thought a bit about this. If we conclude (as I think we have) that no encoding exists in which characters and codepoints can be equated (i.e. not even UCS4), then I think there is no longer any motivation for string slices from the perspective of unicode encoding. There may be a more general motivation for efficient string concatenation and subdivision, but the argument for that is highly situational. The main question, I think, is whether we are willing to trade linear access time for substring reuse. My personal sense is that we probably should *not* do this with the primitive string type, but we should perhaps consider introducing a SlicedString type and a Stringish type class. shap
_______________________________________________ bitc-dev mailing list [email protected] http://www.coyotos.org/mailman/listinfo/bitc-dev
