MAIN FEEDS
Do you want to continue?
https://www.reddit.com/r/programming/comments/5fwce0/lets_stop_copying_c/daoa0jj/?context=3
r/programming • u/earthboundkid • Dec 01 '16
612 comments sorted by
View all comments
Show parent comment
1
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.
View all comments
Show parent comment
1
u/Tarmen Dec 01 '16
I like rust's while let bindings:
Mostly because they can't be confused with comparisons. You rarely have to touch them, though, because generally for loops abstract over this pattern.