Skip to content

Instantly share code, notes, and snippets.

@drewcrawford
Created June 21, 2015 11:47
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save drewcrawford/4f31ad1d28aae00211ba to your computer and use it in GitHub Desktop.
Save drewcrawford/4f31ad1d28aae00211ba to your computer and use it in GitHub Desktop.
//: Playground - noun: a place where people can play
import Cocoa
var str = "Hello, playground"
import Foundation
class POSIXSocketNotificationHandle { }
protocol Nextable {
typealias NEXT
var next : NEXT { get }
}
protocol Notifiable {
}
protocol NotifiableProxy {
var notifiableProxy : Notifiable { get }
}
extension Nextable where Self.NEXT : Notifiable {
var notifiableProxy : Notifiable {
get {
return self.next
}
}
}
extension Nextable where Self.NEXT : NotifiableProxy {
var notifiableProxy : Notifiable {
get {
return self.next.notifiableProxy
}
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment