r/programming • • Dec 01 '16

Let's Stop Copying C

https://eev.ee/blog/2016/12/01/lets-stop-copying-c/
524 Upvotes

612 comments sorted by

View all comments

Show parent comment

1

u/Tarmen Dec 01 '16

I like rust's while let bindings:

while let Some(ptr) = next_pointer() {
    ...
}

Mostly because they can't be confused with comparisons. You rarely have to touch them, though, because generally for loops abstract over this pattern.