loading...

re: Ternary Unwrapping in Swift VIEW POST

TOP OF THREAD FULL DISCUSSION
re: Just in an attempt at playing code golf, the int example could also be written as let sentence = optionalNumber.map { "My favorite number is \($...
 

Ultimately, it's a matter of taste.
The ?? | operator, however, allows me express the same idea in the style of an operator (ternary conditional) that's already common in many programming languages.

code of conduct - report abuse