Major performance problem with std.array.front()

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


On Fri, Mar 07, 2014 at 05:24:59PM +0000, Vladimir Panteleev wrote:
> On Friday, 7 March 2014 at 03:52:42 UTC, Walter Bright wrote:
> >Ok, I have a plan. Each step will be separated by at least one
> >version:
> >
> >1. implement decode() as an algorithm for string types, so one can
> >write:
> >
> >    string s;
> >    s.decode.algorithm...
> >
> >suggest that people start doing that instead of:
> >
> >    s.algorithm...
> 
> I think .decode should be something more explicit (byCodePoint
> OSLT), just so it's clear that it's not magical and does not solve
> all problems.

+1. I think "byCodePoint" is far more self-documenting and less
misleading than "decode".

	string s;
	s.byCodePoint.algorithm...

I'm already starting to like it.


T

-- 
It always amuses me that Windows has a Safe Mode during bootup. Does
that mean that Windows is normally unsafe?


More information about the Digitalmars-d mailing list