I want to implement the following operator »:
»
throwingFunction(arg: T?)».doStuff() /* if throwingFunction throws an error: print or log the er
prefix and postfix are unary operators i.e. they only accept one operand, whereas an infix operator is a binary operator i.e. it accepts two operands.
prefix
postfix
infix
So, static func »(value:key:) -> Preferred? is not correct because it's taking two operands whereas you have defined » as a postfix operator.
static func »(value:key:) -> Preferred?