Major performance problem with std.array.front()

H. S. Teoh hsteoh at quickfur.ath.cx
Fri Mar 7 09:38:12 PST 2014


On Fri, Mar 07, 2014 at 05:08:02PM +0000, Dicebot wrote:
> On Friday, 7 March 2014 at 17:04:30 UTC, Vladimir Panteleev wrote:
> >I think that if we are to draw a line somewhere on what to support
> >and not, the decision should not be embedded as deep into the
> >language. Ideally, it would be clearly visible in the code that
> >you are counting code points.
> 
> Well if you consider really breaking changes, simply prohibiting
> plain random access to char[] and forcing to use either .raw or
> .decode is one thing I'd love to see (with .byGrapheme as library
> cherry on top)

I don't understand what advantage this would bring.


T

-- 
Frank disagreement binds closer than feigned agreement.


More information about the Digitalmars-d mailing list