As I interpret the Swift documentation, one should be able to use the prime ( ' ) character among other quote combinations as a custom operator.
Specifically, I'd like to use the back-tic ( ` ) and prime ( ' ) as prefix and/or postfix operators.
This code doesn't compile
postfix operator '
postfix func ' <A>(arg: A) -> A {
return arg
}
23'
whereas this works fine
postfix operator ~
postfix func ~ <A>(arg: A) -> A {
return arg
}
23~
Is this simply not possible?