Quantcast
Channel: XibXor » variadic
Browsing all 2 articles
Browse latest View live

Functional OR in PHP and Obj C

Javascript’s OR operator, ||, is extremely convenient. It returns the first true value, otherwise the last false value. That is, (3 || 0 || 1) would evaluate to 3. And (0 || 0 || null) would evaluate...

View Article



Non-Coalescing OR operator for Objective C

In a previous post of mine, I talked about how javascript and some other languages have an OR operator that doesn’t cast to a boolean. The non-coalescing operator is extremely useful for setting...

View Article
Browsing all 2 articles
Browse latest View live




Latest Images