Re: [swift-users] Extensions

2017-05-13 Thread Brent Royal-Gordon via swift-users
> On May 13, 2017, at 5:32 PM, Don Giovanni via swift-users > wrote: > > Hi I was wondering if i could get some suggestions on this: > > extension CGPoint : Comparable > { > static func <(l: CGPoint, r: CGPoint) -> > Bool{ > return true; > } > > static func ==(l: CGPoin

[swift-users] Extensions

2017-05-13 Thread Don Giovanni via swift-users
Hi I was wondering if i could get some suggestions on this: extension CGPoint : Comparable { static func <(l: CGPoint, r: CGPoint) -> Bool{ return true; } static func ==(l: CGPoint, r: CGPoint) -> Bool{ return true; } } CGPoint is a Core graphics s

Re: [swift-users] Annotating C APIs without changing the original header files

2017-05-13 Thread Guillaume Lessard via swift-users
> On May 12, 2017, at 12:33, Daniel Dunbar via swift-users > wrote: > > We don't have explicit support for api notes in SwiftPM. > It would also be useful for cases when the latest versions of clang can’t be counted on for Linux deployments (3.6 is considered cutting-edge by some, heh) Guil