Swift nil-coalescing operator

from blog lmno.lol @alvaro, | ↗ original
Paul Hudson, over at Hacking with Swift, has written The Complete Guide to Optionals in Swift. One of the many highlights is the nil-coalescing operator. If you're a fan of the C-like syntax in ternary operations, you'd enjoy chaining with Swift's nil-coalescing operator: let players = [ "goose": "run!" ] let move = players["duck1"] ??...