www.digitalmars.com         C & C++   DMDScript  

digitalmars.D - Do findSplit, findSplitBefore,

reply Jonathan M Davis <jmdavisProg gmx.com> writes:
With the most recent release, we got findSplit, findSplitBefore, and
findSplitAfter 
in std.algorithm, which are all very useful and cool. However, in light of what 
they can do, I'm wondering if we really need std.algorithm.until? It seems to
me 
that the findSplit* functions give you that functionality, and I see no reason
to 
keep until around long term if it's not really giving us something that the 
findSplit* functions aren't.

Does anyone have a good reason why the findSplit* functions don't make until 
obsolete and unnecessary?

- Jonathan M Davis
Feb 19 2011
next sibling parent Tomek =?ISO-8859-2?B?U293afFza2k=?= <just ask.me> writes:
Jonathan M Davis napisa=B3:

 Does anyone have a good reason why the findSplit* functions don't make un=
til=20
 obsolete and unnecessary?
Until is lazy, findSplit* are not. --=20 Tomek
Feb 20 2011
prev sibling parent Andrei Alexandrescu <SeeWebsiteForEmail erdani.org> writes:
On 2/20/11 12:20 AM, Jonathan M Davis wrote:
 With the most recent release, we got findSplit, findSplitBefore, and
findSplitAfter
 in std.algorithm, which are all very useful and cool. However, in light of what
 they can do, I'm wondering if we really need std.algorithm.until? It seems to
me
 that the findSplit* functions give you that functionality, and I see no reason
to
 keep until around long term if it's not really giving us something that the
 findSplit* functions aren't.

 Does anyone have a good reason why the findSplit* functions don't make until
 obsolete and unnecessary?

 - Jonathan M Davis
until is lazy, findSplit* are eager. Andrei
Feb 20 2011