Try? vs ? (and is there a comprehensive Swift operator precedence table?)

try is one of several operators with magical behavior not expressible in terms of Swift’s ordinary precedence rules:

Reading the source code quoted in that post will give you some idea of how try interacts with other operators in terms of the “hoisting” behavior.

3 Likes