On 7/4/13 1:18 AM, Timon Gehr wrote:
On 07/04/2013 07:04 AM, Andrei Alexandrescu wrote:
Evidence we've done the right thing by emphasizing ranges instead of
opApply.

http://www.reddit.com/r/programming/comments/1hl2qr/rust_07_released/
https://mail.mozilla.org/pipermail/rust-dev/2013-June/004599.html

Andrei

Well, probably, but implementing ranges is still too tedious.
It is very likely that rust is going to fix that.

Let's see.

It should be as simple as:

auto map(alias a,R)(R r){
foreach(x;r)
yield a(x);
}

Nonono. This gives you an input range. The current map() gives a range of the same category as the range passed. This is a major issue with yield. It does make it easy to implement input ranges, but I'm glad we did not build with it.

Andrei

Reply via email to