Quantcast
Channel: Object Mentor Blog: Outliving The Great Variable Shortage
Viewing all articles
Browse latest Browse all 26

"Outliving The Great Variable Shortage" by JJM

$
0
0

I’ve recently come to like it when empty arrays, tuples and strings evaluate to false. Most of the times it doesn’t matter whether a function was passed an empty array, an empty tuple or a null/none/nil value.

This is especially true in horrendous languages like PHP which have functions that can return multiple types of results, like NULL when NULL was passed into the function, False when it can’t handle the inputs and an int if the function was successful….


Viewing all articles
Browse latest Browse all 26

Trending Articles