between and among: worth Phobosization?

H. S. Teoh hsteoh at quickfur.ath.cx
Mon Dec 16 14:51:55 PST 2013


On Mon, Dec 16, 2013 at 11:39:56PM +0100, Joseph Rushton Wakeling wrote:
> On 16/12/13 23:30, Andrei Alexandrescu wrote:
> >I guess if we need several versions of between, we could give up on it.
> 
> What's wrong with having it implemented analogous to
> std.random.uniform -- taking a bounds parameter which allows for
> open and/or closed at either end, with the default being "[)" ... ?
> 
> By the way, I'd also like to see that open/closed-at-either-end
> specialization extended to std.range.iota().

Oooh, do I hear a volunteer for cleaning up iota? ;-)

While you're at it, you might as well implement:

	https://d.puremagic.com/issues/show_bug.cgi?id=10762

:-P


T

-- 
The peace of mind---from knowing that viruses which exploit Microsoft system vulnerabilities cannot touch Linux---is priceless. -- Frustrated system administrator.


More information about the Digitalmars-d mailing list