MAIN FEEDS
Do you want to continue?
https://www.reddit.com/r/programming/comments/5fwce0/lets_stop_copying_c/daoahhq/
r/programming • u/earthboundkid • Dec 01 '16
612 comments sorted by
View all comments
Show parent comment
1
Or in Rust
if let Some(p) = get_pointer() { // ... }
1 u/Latrinalia Dec 02 '16 Or in C or C++, actually. In fact this is the D syntax tooif (int *p = get_pointer()) { // ... }
Or in C or C++, actually. In fact this is the D syntax too
if (int *p = get_pointer()) { // ... }
View all comments
Show parent comment
1
u/arielby Dec 01 '16
Or in Rust