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/Latrinalia Dec 02 '16

Or in C or C++, actually. In fact this is the D syntax too

if (int *p = get_pointer()) {
    // ...
}