Re: One more simple idea for simplifying constraints

2016-04-25 Thread H. S. Teoh via Digitalmars-d
On Mon, Apr 25, 2016 at 02:50:28PM -0400, Andrei Alexandrescu via Digitalmars-d wrote: > Sometimes we use constraints to distinguish different approach to > implementation, e.g. find for a string is different than find for > forward ranges is different from find for input ranges etc. > > One simp

Re: One more simple idea for simplifying constraints

2016-04-25 Thread deadalnix via Digitalmars-d
On Tuesday, 26 April 2016 at 03:17:09 UTC, Stefan Koch wrote: On Monday, 25 April 2016 at 18:50:28 UTC, Andrei Alexandrescu wrote: Sometimes we use constraints to distinguish different approach to implementation, e.g. find for a string is different than find for forward ranges is different from

Re: One more simple idea for simplifying constraints

2016-04-25 Thread Stefan Koch via Digitalmars-d
On Monday, 25 April 2016 at 18:50:28 UTC, Andrei Alexandrescu wrote: Sometimes we use constraints to distinguish different approach to implementation, e.g. find for a string is different than find for forward ranges is different from find for input ranges etc. One simple idea here (which Walt

One more simple idea for simplifying constraints

2016-04-25 Thread Andrei Alexandrescu via Digitalmars-d
Sometimes we use constraints to distinguish different approach to implementation, e.g. find for a string is different than find for forward ranges is different from find for input ranges etc. One simple idea here (which Walter also advised a while ago) is to push implementation details inside