We had an internal convo about which one someone should pick:
A)
If(const char* x = func()) {...}
Or
B)
const char* x = func();
If(x != nullptr) {...}
What do y'all think?
We had an internal convo about which one someone should pick:
A)
If(const char* x = func()) {...}
Or
B)
const char* x = func();
If(x != nullptr) {...}
What do y'all think?