3 ms·
Objective-C Tricks: #1 Ternary Operations
Objective-C is a reflective and powerful object-oriented language. When first starting (or looking) at the syntax, many react fearfully to the verbosity and square brackets. Many rarely get beyond the basics they learned when making their first app, but there are many unused abilities in Objective-C.
- andymoe 14y agoThis really does not make the code more readable especially the last method show that's even less explicit.