3 ms·
Let's picture a future reader: "Hmmm, if 'foo == null' is true, than it's true... I see..." Seriously..
by wreegab 13y ago
Let's picture a future reader:
"Hmmm, if 'foo == null' is true, than it's true... I see..."
Seriously..
- jebblue 13y agoFrom a maintenance perspective, it's a bit more involved than that. Returning the explicit evaluation result says, "I do care what foo is and these are the only valid possible return values after expression evaluation, today just return null but in the future we might return something different, either way the return value at this point is critical and needs to be explicitly considered and processed".
- sixothree 13y agoYeah, it was a wild guess. I have a habit of making things more verbose for future maintainers.