[phobos] Simplify iota for floating-point types?

spir denis.spir at gmail.com
Thu Dec 23 12:05:58 PST 2010


On Thu, 23 Dec 2010 12:52:31 -0600
Andrei Alexandrescu <andrei at erdani.com> wrote:

> These are reasonable arguments, and I'd agree a lot more if I didn't 
> also believe that bidirectional and random access of iota ranges is 
> extremely rare. So it looks like we're hurting the common case for the 
> sake of a potential but obscure and rarely realized generality.

I agree. Python's "range" is similar to iota: I have never needed more than plain forward traversal, and never read any code that needs more.

Denis
-- -- -- -- -- -- --
vit esse estrany ☣

spir.wikidot.com



More information about the phobos mailing list