between and among: worth Phobosization?

Andrei Alexandrescu SeeWebsiteForEmail at erdani.org
Mon Dec 16 15:00:46 PST 2013


On 12/16/13 2:39 PM, 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 "[)" ... ?

Too much sophistication for too trivial work. One between would be fine. 
Four would be probably overdoing it. So I'm retracting my proposal for 
between.

Andrei




More information about the Digitalmars-d mailing list