How to declare exponent/power operator with new precedencegroup in Swift 3?
<p>There's been a change in Swift 3 for Xcode 8 beta 6 and now I'm not able to declare my operator for power as I did before:</p>

<pre><code>infix operator ^^ { }
public func ^^ (radix: Double, power: Double) -&gt; Double {
    return pow((radix), (power))
}
</code></pre>

<p>I've read a bit about it and there's a new change <a href="https://github.com/apple/swift-evolution/blob/master/proposals/0077-operator-precedence.md" rel="noreferrer">been introduced in Xcode 8 beta 6</a> </p>

<p>From this I'm guessing I have to declare a precedence group and use it for my operator like this:</p>

<pre><code>precedencegroup ExponentiativePrecedence {}

infix operator ^^: ExponentiativePrecedence
public func ^^ (radix: Double, power: Double) -&gt; Double {
    return pow((radix), (power))
}
</code></pre>

<p>Am I going in the right direction to make this work? What should I put inside the {} of the precedence group?</p>

<p>My final aim is to be able to make power operations with a simple operator in swift, e.g.:</p>

<pre><code>10 ^^ -12
10 ^^ -24
</code></pre>