News for hackers. Stuff that matters.
Re:The Path to Rust by gpderetta on Thursday May 26, 2016 @05:05AM (#11776599)
I like to use (even abuse) lazy iterators in C++ as the next guy, but IMHO the imperative version in this case is not only shorter but significantly more readable.

The two loops contain a single statement and it is trivial to see what's going on. It is also easier to extend. And it is still using lazy iterators (I assume) where it makes sense, i.e. in the split_whitespace call.

Re:The Path to Rust by alex_muscar on Thursday May 26, 2016 @06:58AM (#11777001)
I cannot upvote you enough.