Skip to content

Instantly share code, notes, and snippets.

@623637646
Created September 5, 2019 08:28
Show Gist options
  • Save 623637646/d1b73c57c713aeb651902759b3038715 to your computer and use it in GitHub Desktop.
Save 623637646/d1b73c57c713aeb651902759b3038715 to your computer and use it in GitHub Desktop.
Discard + - * / for Double and Float
import Foundation
// Double
func + (leftAddend: Double, rightAddend: Double) -> Double {
fatalError()
}
func - (leftAddend: Double, rightAddend: Double) -> Double {
fatalError()
}
func * (leftAddend: Double, rightAddend: Double) -> Double {
fatalError()
}
func / (leftAddend: Double, rightAddend: Double) -> Double {
fatalError()
}
func += (lhs: inout Double, rhs: Double) {
fatalError()
}
func -= (lhs: inout Double, rhs: Double) {
fatalError()
}
func *= (lhs: inout Double, rhs: Double) {
fatalError()
}
func /= (lhs: inout Double, rhs: Double) {
fatalError()
}
// Float
func + (leftAddend: Float, rightAddend: Float) -> Float {
fatalError()
}
func - (leftAddend: Float, rightAddend: Float) -> Float {
fatalError()
}
func * (leftAddend: Float, rightAddend: Float) -> Float {
fatalError()
}
func / (leftAddend: Float, rightAddend: Float) -> Float {
fatalError()
}
func += (lhs: inout Float, rhs: Float) {
fatalError()
}
func -= (lhs: inout Float, rhs: Float) {
fatalError()
}
func *= (lhs: inout Float, rhs: Float) {
fatalError()
}
func /= (lhs: inout Float, rhs: Float) {
fatalError()
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment